[freeside-commits] freeside/httemplate/edit/process part_pkg.cgi, 1.34, 1.35

Ivan,,, ivan at wavetail.420.am
Tue Jul 8 19:30:48 PDT 2008


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv14305

Modified Files:
	part_pkg.cgi 
Log Message:
don't require an agent type to be specified when editing a disabled package

Index: part_pkg.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/part_pkg.cgi,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -d -r1.34 -r1.35
--- part_pkg.cgi	12 Jun 2008 21:53:32 -0000	1.34
+++ part_pkg.cgi	9 Jul 2008 02:30:45 -0000	1.35
@@ -38,10 +38,10 @@
     push @agents, $1 if $1;
   }
   return "At least one agent type must be specified."
-    unless( scalar(@agents) ||
-            $cgi->param('clone') && $cgi->param('clone') =~ /^\d+$/ ||
-            !$cgi->param('pkgpart') && $conf->exists('agent-defaultpkg')
-          );
+    unless scalar(@agents)
+           || ( $cgi->param('clone') && $cgi->param('clone') =~ /^\d+$/ )
+           || ( !$cgi->param('pkgpart') && $conf->exists('agent-defaultpkg') )
+           || $cgi->param('disabled');
 
   return '';
 



More information about the freeside-commits mailing list