From: mark Date: Tue, 13 Dec 2011 20:34:26 +0000 (+0000) Subject: silence warnings under 5.14 X-Git-Tag: freeside_2_3_1~88 X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=commitdiff_plain;h=fdb9aecd3c4bcaef6f13becbe209e7cd7475204b silence warnings under 5.14 --- diff --git a/FS/FS/cust_pkg_reason.pm b/FS/FS/cust_pkg_reason.pm index 72a23198d..7c68e623a 100644 --- a/FS/FS/cust_pkg_reason.pm +++ b/FS/FS/cust_pkg_reason.pm @@ -211,7 +211,7 @@ sub _upgrade_data { # class method #remove nullability if scalar(@migrated) - $count == 0 && ->column('action'); #seek expirations/adjourns without reason - foreach my $field qw( expire adjourn cancel susp ) { + foreach my $field (qw( expire adjourn cancel susp )) { my $addl_from = "LEFT JOIN h_cust_pkg ON ". "(cust_pkg_reason.pkgnum = h_cust_pkg.pkgnum AND". @@ -271,7 +271,7 @@ sub _upgrade_data { # class method } #seek cancels/suspends without reason, but with expire/adjourn reason - foreach my $field qw( cancel susp ) { + foreach my $field (qw( cancel susp )) { my %precursor_map = ( 'cancel' => 'expire', 'susp' => 'adjourn' ); my $precursor = $precursor_map{$field};