From 3b39e6d2f5b8e5e0be175d8f0810cdd66ed66d96 Mon Sep 17 00:00:00 2001 From: ivan Date: Wed, 9 Jul 2008 02:30:45 +0000 Subject: don't require an agent type to be specified when editing a disabled package --- httemplate/edit/process/part_pkg.cgi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'httemplate/edit/process/part_pkg.cgi') 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 ''; -- cgit v1.2.1