From 5463cc67ac63ab767e48aa4139f4dddbe3d664da 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 --- suggestion/suggestion.pl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/suggestion/suggestion.pl b/suggestion/suggestion.pl index 27a263cd2c0..5f69087ca06 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.25.1