fix recurring fee edit on clone/customize, RT#72958
authorIvan Kohler <ivan@freeside.biz>
Sat, 22 Oct 2016 13:02:46 +0000 (06:02 -0700)
committerIvan Kohler <ivan@freeside.biz>
Sat, 22 Oct 2016 13:02:46 +0000 (06:02 -0700)
httemplate/edit/part_pkg.cgi

index 641366b..7c4a5e6 100755 (executable)
@@ -586,6 +586,11 @@ my $clone_callback = sub {
 
   $recur_disabled = $object->freq ? 0 : 1;
 
+  $recur_show_zero_disabled =
+    $object->freq
+      ? $object->option('recur_fee') > 0 ? 1 : 0
+      : 1;
+
 };
 
 my $discount_error_callback = sub {