[freeside-commits] branch FREESIDE_3_BRANCH updated. e9e20fd7440f6a33462270a271dab53f84bc420f
Ivan
ivan at 420.am
Sun Feb 22 15:02:52 PST 2015
The branch, FREESIDE_3_BRANCH has been updated
via e9e20fd7440f6a33462270a271dab53f84bc420f (commit)
from 04852c08344dc1510c0924a754ddb5a06cc76869 (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 e9e20fd7440f6a33462270a271dab53f84bc420f
Author: Ivan Kohler <ivan at freeside.biz>
Date: Sun Feb 22 15:02:51 2015 -0800
fix disappearing first names, fallout from #32223
diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm
index 61e708e..84e7b69 100644
--- a/FS/FS/Template_Mixin.pm
+++ b/FS/FS/Template_Mixin.pm
@@ -7,7 +7,7 @@ use vars qw( $DEBUG $me
);
# but NOT $conf
use vars qw( $invoice_lines @buf ); #yuck
-use List::Util qw(sum first);
+use List::Util qw(sum); #can't import first, it conflicts with cust_main.first
use Date::Format;
use Date::Language;
use Text::Template 1.20;
@@ -1214,7 +1214,8 @@ sub print_generic {
# create a tax section if we don't yet have one
my $tax_description = 'Taxes, Surcharges, and Fees';
- my $tax_section = first { $_->{description} eq $tax_description } @sections;
+ my $tax_section =
+ List::Util::first { $_->{description} eq $tax_description } @sections;
if (!$tax_section) {
$tax_section = { 'description' => $tax_description };
push @sections, $tax_section if $multisection;
-----------------------------------------------------------------------
Summary of changes:
FS/FS/Template_Mixin.pm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
More information about the freeside-commits
mailing list