Bug 22908: Prevent ModSuggestion to send a notice if something wrong happened
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 14 May 2019 17:23:25 +0000 (12:23 -0500)
committerroot <root@f1ebe1bec408>
Thu, 30 May 2019 10:03:13 +0000 (10:03 +0000)
commit39c4d9d55e5a2e137adbbbd2b29b5b829f66b59e
treea4d072cb3ebe727e6161d1c9a34ea655cdcff7fb
parent9613d9f1647bfceeb15b60c731f2c84796a12f87
Bug 22908: Prevent ModSuggestion to send a notice if something wrong happened

There is a return value $status_update_table that is set to 0, then we
send the alert (whatever the value of this variable). We must return
earlier if something happened!

Test plan:
Not sure how to recreate it via the interface, so just run the tests?

Signed-off-by: Liz Rea <wizzyrea@gmail.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
C4/Suggestions.pm