projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc0459d
)
fix inability to edit agent types for a package def when agent_defaultpkg is set on
author
ivan
<ivan>
Tue, 12 Aug 2008 08:47:31 +0000
(08:47 +0000)
committer
ivan
<ivan>
Tue, 12 Aug 2008 08:47:31 +0000
(08:47 +0000)
httemplate/edit/process/part_pkg.cgi
patch
|
blob
|
history
diff --git
a/httemplate/edit/process/part_pkg.cgi
b/httemplate/edit/process/part_pkg.cgi
index
d4843ed
..
bcb2aa6
100755
(executable)
--- 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',