From edf5844893500b6e624d291e7e339838afbf38c6 Mon Sep 17 00:00:00 2001 From: Aleisha Date: Mon, 11 Jan 2016 21:15:46 +0000 Subject: [PATCH] Bug 14641: [SIGNED-OFF] Warns in subscription-add.pl MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Removes warn using Jonathan's suggestion! To test: 1) Reproduce warns by clicking New Subscription 2) Apply patch 3) Click New Subscription again 4) Confirm warns are gone Signed-off-by: Magnus Enger Patch removes the warn that come when clicking "New subscription" Signed-off-by: Jonathan Druart Signed-off-by: Brendan A Gallagher (cherry picked from commit fe7940257537042ff6ffab9c7b718e5b8a5dc368) Signed-off-by: Julian Maurice (cherry picked from commit 0e6346c614bd5707d79fc376dd4d9028c5086bc9) Signed-off-by: Frédéric Demians --- serials/subscription-add.pl | 1 + 1 file changed, 1 insertion(+) diff --git a/serials/subscription-add.pl b/serials/subscription-add.pl index ce6f91dd3b..024a26bf26 100755 --- a/serials/subscription-add.pl +++ b/serials/subscription-add.pl @@ -226,6 +226,7 @@ if ($op eq 'addsubscription') { sub get_letter_loop { my ($selected_lettercode) = @_; + $selected_lettercode //= ''; my $letters = GetLetters({ module => 'serial' }); return [ map { -- 2.39.5