From 2d2ffbd075c95eb465fcc32c53b19f11d67cb4b6 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Mon, 18 Nov 2019 15:16:24 +0100 Subject: [PATCH] Bug 22784: Do not display an empty table MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit This is terrible and highlight that the whole script must be rewrite. GetDistinctValues does not handle the "archived" flag (and we do not want to put our hands there), so let's hack that and plan to rewrite the whole script. Signed-off-by: Séverine QUEUNE Signed-off-by: Katrin Fischer Signed-off-by: Martin Renvoize --- suggestion/suggestion.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index 464badb138..4f5c915e53 100755 --- a/suggestion/suggestion.pl +++ b/suggestion/suggestion.pl @@ -370,7 +370,7 @@ if ($op=~/else/) { "suggestionscount"=>scalar(@$suggestions), 'suggestions_loop'=>$suggestions, 'reasonsloop' => $reasonsloop, - }; + } if @$suggestions; delete $$suggestion_ref{$displayby} unless $definedvalue; } -- 2.39.5