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.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/httemplate/edit/process/part_pkg.cgi b/httemplate/edit/process/part_pkg.cgi
index d4843edd4..bcb2aa631 100755
--- a/httemplate/edit/process/part_pkg.cgi
+++ b/httemplate/edit/process/part_pkg.cgi
@@ -100,7 +100,9 @@ if ( $error ) {
$pkgpart = $new->pkgpart;
}
-unless ( $error || $conf->exists('agent_defaultpkg') ) {
+unless ( $error
+ || ( !$cgi->param('pkgpart') && $conf->exists('agent_defaultpkg') )
+ ) {
my $error = $new->process_m2m(
'link_table' => 'type_pkgs',
'target_table' => 'agent_type',