From f6251ae7cea086ef67e09cf9144f663b3842c0a1 Mon Sep 17 00:00:00 2001
From: ivan <ivan>
Date: Tue, 17 Jun 2008 23:57:20 +0000
Subject: [PATCH] don't lose the pricing on package cloning w/new package
 editor

---
 httemplate/edit/part_pkg.cgi | 5 ++---
 1 file 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;
 
 };
-- 
2.20.1