]> git.koha-community.org Git - koha.git/commit
Bug 24244: Send null instead of empty string if branch not set
authorNick Clemens <nick@bywatersolutions.com>
Fri, 13 Dec 2019 19:58:52 +0000 (19:58 +0000)
committerLucas Gass <lucas@bywatersolutions.com>
Wed, 15 Jan 2020 18:24:27 +0000 (18:24 +0000)
commit9a062f563d463a7f6e1317030d1a6b3d70e3aa71
tree31fe30b96d75f4e3ca501be6672c7bb655bc7de3
parent5b40c39a34f722c657aeb50255608fe42723070f
Bug 24244: Send null instead of empty string if branch not set

Fix NewSuggestion if branchcode is passed with an empty string.
Error was "Broken FK constraint"

Test plan:
Create a new suggestion, select "any" for the library.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Joy Nelson <joy@bywatersolutions.com>
(cherry picked from commit 374b627ff7db3445c280e40ee08724726166db00)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
C4/Suggestions.pm