diff options
Diffstat (limited to 'httemplate/edit/part_pkg.cgi')
-rwxr-xr-x | httemplate/edit/part_pkg.cgi | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi index 032970c30..d9dcaa87f 100755 --- a/httemplate/edit/part_pkg.cgi +++ b/httemplate/edit/part_pkg.cgi @@ -212,11 +212,10 @@ my $new_object_callback = sub { %options = $clone_part_pkg->options; } else { $part_pkg = FS::part_pkg->new( $hashref ); + $part_pkg->set($_ => '0') + foreach (qw( setup_fee recur_fee )); } - $part_pkg->set($_ => '0') - foreach (qw( setup_fee recur_fee )); - $part_pkg; }; |