summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/part_pkg.cgi
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit/process/part_pkg.cgi')
-rwxr-xr-xhttemplate/edit/process/part_pkg.cgi8
1 files changed, 4 insertions, 4 deletions
diff --git a/httemplate/edit/process/part_pkg.cgi b/httemplate/edit/process/part_pkg.cgi
index eaf67e908..d4843edd4 100755
--- a/httemplate/edit/process/part_pkg.cgi
+++ b/httemplate/edit/process/part_pkg.cgi
@@ -48,10 +48,10 @@ foreach ($cgi->param('agent_type')) {
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 {