diff options
| author | ivan <ivan> | 2008-07-09 02:32:14 +0000 | 
|---|---|---|
| committer | ivan <ivan> | 2008-07-09 02:32:14 +0000 | 
| commit | 826efec5cd17cd1485cb4c0ef796c7008252e6e4 (patch) | |
| tree | 5d02c93e8b78c603c56f41a42d7dab49d3342b24 /httemplate/edit/process/part_pkg.cgi | |
| parent | 97125ce8d07d65942eb83669832c9b94f1883eb3 (diff) | |
don't require an agent type to be specified when editing a disabled package
Diffstat (limited to 'httemplate/edit/process/part_pkg.cgi')
| -rwxr-xr-x | httemplate/edit/process/part_pkg.cgi | 8 | 
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 { | 
