From 59a16f8c68e9e5bf64edfe2100a03ff74c1c337e 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 --- 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.20.1