[freeside-commits] freeside/httemplate/edit/process part_pkg.cgi, 1.18.2.11, 1.18.2.12

Ivan,,, ivan at wavetail.420.am
Tue Jul 8 19:32:16 PDT 2008


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

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	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.18.2.11
retrieving revision 1.18.2.12
diff -u -d -r1.18.2.11 -r1.18.2.12
--- part_pkg.cgi	20 Feb 2008 01:10:35 -0000	1.18.2.11
+++ part_pkg.cgi	9 Jul 2008 02:32:14 -0000	1.18.2.12
@@ -48,10 +48,10 @@
   push @agents, $1 if $1;
 }
 $error = "At least one agent type must be specified."
-  unless( scalar(@agents) ||
-          $cgi->param('clone') && $cgi->param('clone') =~ /^\d+$/ ||
-          !$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');
 
 my $new = new FS::part_pkg ( {
   map {



More information about the freeside-commits mailing list