From 4f8f6a99c2146b5559b697577db5d37ef334ee6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Demians?= Date: Tue, 17 Jun 2014 12:40:45 +0200 Subject: [PATCH] Bug 12433 - Suggestion status 'Ordered' and 'Available' displayed as 'Unknown' In Acquisitions > Suggestions, there is a tabs bar displaying by default five suggestion status. Two of them are improperly displayed as 'Unknown'. To test: 1 Without the path, go to Acquisitions > Suggestions. 2 You can see two tabs labeled Unknown 3 Apply the patch 4 Go to Acquisitions > Suggestions 5 'Unknown' tabs are now displayed: Available and Ordered. --- suggestion/suggestion.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index 949cca3..4d4371a 100755 --- a/suggestion/suggestion.pl +++ b/suggestion/suggestion.pl @@ -59,7 +59,7 @@ sub Init{ sub GetCriteriumDesc{ my ($criteriumvalue,$displayby)=@_; - unless ( grep { /$criteriumvalue/ } qw(ASKED ACCEPTED REJECTED CHECKED) ) { + unless ( grep { /$criteriumvalue/ } qw(ASKED ACCEPTED REJECTED CHECKED ORDERED AVAILABLE) ) { return GetAuthorisedValueByCode('SUGGEST_STATUS', $criteriumvalue ) || "Unknown"; } return ($criteriumvalue eq 'ASKED'?"Pending":ucfirst(lc( $criteriumvalue))) if ($displayby =~/status/i); -- 1.7.10.4