[freeside-commits] branch FREESIDE_4_BRANCH updated. 32f42da513a6aec0cfbdaa2941bb1e97437a2822

Mitch Jackson mitch at freeside.biz
Thu Jun 14 13:02:07 PDT 2018


The branch, FREESIDE_4_BRANCH has been updated
       via  32f42da513a6aec0cfbdaa2941bb1e97437a2822 (commit)
      from  c7f2b1fd6325796123e2df32b3e27ff7ec466024 (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 32f42da513a6aec0cfbdaa2941bb1e97437a2822
Author: Mitch Jackson <mitch at freeside.biz>
Date:   Thu Jun 14 14:46:38 2018 -0500

    RT# 80543 Crash creating new quotation

diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm
index 3b8c9e136..37bc98923 100644
--- a/FS/FS/Template_Mixin.pm
+++ b/FS/FS/Template_Mixin.pm
@@ -3120,7 +3120,9 @@ sub _items_fee {
   my @cust_bill_pkg = grep { $_->feepart } $self->cust_bill_pkg;
   my $escape_function = $options{escape_function};
 
-  my $locale = $self->cust_main->locale;
+  my $locale = $self->quotationnum
+             ? $self->prospect_main->locale
+             : $self->cust_main->locale;
 
   my @items;
   foreach my $cust_bill_pkg (@cust_bill_pkg) {

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

Summary of changes:
 FS/FS/Template_Mixin.pm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)




More information about the freeside-commits mailing list