[freeside-commits] branch FREESIDE_4_BRANCH updated. 4e7263b41e2a40a78765bdb671595524ab86e60f

Ivan ivan at 420.am
Sat Oct 22 06:02:43 PDT 2016


The branch, FREESIDE_4_BRANCH has been updated
       via  4e7263b41e2a40a78765bdb671595524ab86e60f (commit)
      from  17e0ba08c98efa2e0173995ae9502a498b950a65 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 4e7263b41e2a40a78765bdb671595524ab86e60f
Author: Ivan Kohler <ivan at freeside.biz>
Date:   Sat Oct 22 06:02:41 2016 -0700

    fix recurring fee edit on clone/customize, RT#72958

diff --git a/httemplate/edit/part_pkg.cgi b/httemplate/edit/part_pkg.cgi
index 2c36216..64a7525 100755
--- a/httemplate/edit/part_pkg.cgi
+++ b/httemplate/edit/part_pkg.cgi
@@ -678,6 +678,12 @@ my $clone_callback = sub {
   $object->set($_ => $options{$_})
     foreach (qw( setup_fee recur_fee disable_line_item_date_ranges ));
 
+  $recur_disabled = $object->freq ? 0 : 1;
+  $recur_show_zero_disabled =
+    $object->freq
+      ? $object->option('recur_fee') > 0 ? 1 : 0
+      : 1;
+
   foreach my $currency ( $conf->config('currencies') ) {
     my %part_pkg_currency = $object->part_pkg_currency_options($currency);
     $object->set( $_.'_'.$currency, $part_pkg_currency{$_} )

-----------------------------------------------------------------------

Summary of changes:
 httemplate/edit/part_pkg.cgi |    6 ++++++
 1 file changed, 6 insertions(+)




More information about the freeside-commits mailing list