From 134e9715d2e29f6077fbb15c28188b9dfb4fb739 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Wed, 25 Aug 2021 13:55:36 +0200 Subject: [PATCH] Bug 24370: Allow resetting library to ANY Signed-off-by: Martin Renvoize Signed-off-by: Jonathan Druart --- suggestion/suggestion.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index 27a263cd2c..5f69087ca0 100755 --- a/suggestion/suggestion.pl +++ b/suggestion/suggestion.pl @@ -180,6 +180,9 @@ if ( $op =~ /save/i ) { $suggestion_only->{lastmodificationdate} = dt_from_string; $suggestion_only->{lastmodificationby} = C4::Context->userenv->{number}; + $suggestion_only->{branchcode} = undef + if exists $suggestion_only->{branchcode} + && $suggestion_only->{branchcode} eq ""; &ModSuggestion($suggestion_only); -- 2.39.5