diff options
author | ivan <ivan> | 2009-12-06 23:44:54 +0000 |
---|---|---|
committer | ivan <ivan> | 2009-12-06 23:44:54 +0000 |
commit | d807bc23b37960187378c44c4f03db2e44660b67 (patch) | |
tree | 7eb35c8f28d9675fc1fc15ced4dfa6f3a2106e96 /httemplate | |
parent | d0132ff90c351362c03084c14313ff7e3b1c5d82 (diff) |
fix initial value of agent types when cloning
Diffstat (limited to 'httemplate')
-rwxr-xr-x | httemplate/edit/part_pkg.cgi | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index 7140ca500..f2c7448d5 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -340,7 +340,8 @@ my $edit_callback = sub { $recur_disabled = $object->freq ? 0 : 1; - (@agent_type) = map {$_->typenum} qsearch('type_pkgs',{'pkgpart'=>$1}); + (@agent_type) = + map {$_->typenum} qsearch('type_pkgs', { 'pkgpart' => $object->pkgpart } ); my @report_option = (); foreach ($object->options) { @@ -397,6 +398,11 @@ my $clone_callback = sub { $object->disabled('Y'); + } else { #not when cloning... + + (@agent_type) = + map {$_->typenum} qsearch('type_pkgs',{ 'pkgpart' => $object->pkgpart } ); + } %options = $object->options; |