From: ivan Date: Wed, 9 Jul 2008 02:30:45 +0000 (+0000) Subject: don't require an agent type to be specified when editing a disabled package X-Git-Tag: root_of_webpay_support~498 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=3b39e6d2f5b8e5e0be175d8f0810cdd66ed66d96 don't require an agent type to be specified when editing a disabled package --- diff --git a/httemplate/edit/process/part_pkg.cgi b/httemplate/edit/process/part_pkg.cgi index faaedf9db..91ae97132 100755 --- a/httemplate/edit/process/part_pkg.cgi +++ b/httemplate/edit/process/part_pkg.cgi @@ -38,10 +38,10 @@ my $precheck_callback = sub { 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 '';