[Rt-commit] [svn] r740 - rt/branches/rt-3.1/html/Tools

leira at pallas.eruditorum.org leira at pallas.eruditorum.org
Mon Apr 26 14:40:07 EDT 2004


Author: leira
Date: Mon Apr 26 14:40:07 2004
New Revision: 740

Modified:
   rt/branches/rt-3.1/html/Tools/Offline.html
Log:
Don't try to parse an uploaded file if there's no file to parse.


Modified: rt/branches/rt-3.1/html/Tools/Offline.html
==============================================================================
--- rt/branches/rt-3.1/html/Tools/Offline.html	(original)
+++ rt/branches/rt-3.1/html/Tools/Offline.html	Mon Apr 26 14:40:07 2004
@@ -61,7 +61,7 @@
 my $action = new RT::Action::CreateTickets;
 my $string;
 
-if ($ARGS{'Parse'}) {
+if ($ARGS{'Parse'} && $ARGS{'Template'}) {
     $ARGS{'string'} = "";
     my $cgi_object = $m->cgi_object;
     my $fh = $cgi_object->upload('Template');


More information about the Rt-commit mailing list