diff options
author | Ivan Kohler <ivan@freeside.biz> | 2015-02-22 15:02:51 -0800 |
---|---|---|
committer | Ivan Kohler <ivan@freeside.biz> | 2015-02-22 15:02:51 -0800 |
commit | e9e20fd7440f6a33462270a271dab53f84bc420f (patch) | |
tree | ed7be087e8ed1353a53def0c41ef70cad8427afb | |
parent | 04852c08344dc1510c0924a754ddb5a06cc76869 (diff) |
fix disappearing first names, fallout from #32223
-rw-r--r-- | FS/FS/Template_Mixin.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/FS/FS/Template_Mixin.pm b/FS/FS/Template_Mixin.pm index 61e708ed9..84e7b69c7 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; |