From ed1ce36b45e84a758b09e9cd7b6af192464d673c Mon Sep 17 00:00:00 2001 From: Aleisha Date: Sun, 13 Dec 2015 22:04:09 +0000 Subject: [PATCH] Bug 14641: Warns in subscription-add.pl These warns now appear on line 242. Have changed get_letter_loop() to be empty unless given a value ( get_letter_loop //= '') To test: 1) Reproduce warns by clicking New Subscription 2) Apply patch 3) Click New Subscription again 4) Confirm warns are gone --- serials/subscription-add.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/serials/subscription-add.pl b/serials/subscription-add.pl index 1790866..080506f 100755 --- a/serials/subscription-add.pl +++ b/serials/subscription-add.pl @@ -236,7 +236,7 @@ if ($op eq 'addsubscription') { } sub get_letter_loop { - my ($selected_lettercode) = @_; + my ($selected_lettercode) //= ''; my $letters = GetLetters({ module => 'serial' }); return [ map { -- 1.7.10.4