From: ivan Date: Tue, 17 Jun 2008 23:57:20 +0000 (+0000) Subject: don't lose the pricing on package cloning w/new package editor X-Git-Tag: root_of_webpay_support~563 X-Git-Url: http://git.freeside.biz/gitweb/?a=commitdiff_plain;h=f6251ae7cea086ef67e09cf9144f663b3842c0a1;p=freeside.git don't lose the pricing on package cloning w/new package editor --- 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; };