From 182db38e22ebd366a9f05734ea3751ca15fd71dd Mon Sep 17 00:00:00 2001 From: Nick Clemens Date: Wed, 5 Aug 2020 11:50:39 +0000 Subject: [PATCH] Bug 25033: (follow-up) Don't delete branchcode key from suggestion_ref Signed-off-by: Katrin Fischer Signed-off-by: Jonathan Druart --- suggestion/suggestion.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index 560a524c77..48527ae363 100755 --- a/suggestion/suggestion.pl +++ b/suggestion/suggestion.pl @@ -219,7 +219,7 @@ if ( $op =~ /save/i ) { } # empty fields, to avoid filter in "SearchSuggestion" } - map{delete $$suggestion_ref{$_}} keys %$suggestion_ref; + map{delete $$suggestion_ref{$_} unless $_ eq 'branchcode' } keys %$suggestion_ref; $op = 'else'; if( $redirect eq 'purchase_suggestions' ) { @@ -324,7 +324,7 @@ elsif ( $op eq 'show' ) { } if ($op=~/else/) { $op='else'; - + $displayby||="STATUS"; # distinct values of display by my $criteria_list=GetDistinctValues("suggestions.".$displayby); -- 2.39.5