From 392ab72c3433a7848c784a2454c2b0d8e0d34148 Mon Sep 17 00:00:00 2001 From: Katrin Fischer Date: Mon, 1 Jul 2013 23:17:58 +0200 Subject: [PATCH] Bug 10519: Fix display of tab for ordered suggestions Adds 2 more valid status to a check to make the description on the tab for 'Ordered' and 'Available' suggestions show up correctly. To test: - Make 2 suggestions. - Accept both and order them in acquisitions. - Receive one of them. - Use the 'Organize by' filter with 'Status' - Verify status descriptions in the tabs show up correctly. Signed-off-by: Kyle M Hall --- suggestion/suggestion.pl | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index fd9a9c2..6a32a48 100755 --- a/suggestion/suggestion.pl +++ b/suggestion/suggestion.pl @@ -58,7 +58,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.2.5