From fa6dda96dd762ae04f216295a3046978487288c9 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Tue, 2 Jul 2013 09:33:59 -0400 Subject: [PATCH] [SIGNED OFF] Bug 10519 - Suggestions: 'Organize by' and correct display of tab descriptions broken - Change "Unknown" to authorised value Signed-off-by: Katrin Fischer Small patch, dealing with the display when no description for the authorized value is found. --- suggestion/suggestion.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index 6a32a48..6d8350f 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 ORDERED AVAILABLE) ) { - return GetAuthorisedValueByCode('SUGGEST_STATUS', $criteriumvalue ) || "Unknown"; + return GetAuthorisedValueByCode('SUGGEST_STATUS', $criteriumvalue ) || $criteriumvalue; } return ($criteriumvalue eq 'ASKED'?"Pending":ucfirst(lc( $criteriumvalue))) if ($displayby =~/status/i); return (GetBranchName($criteriumvalue)) if ($displayby =~/branchcode/); -- 1.7.9.5