]> git.koha-community.org Git - koha.git/commit
Bug 29790: Restore warning if deletion of serial item fails
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 4 Jan 2022 14:59:15 +0000 (15:59 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Tue, 11 Jan 2022 22:38:35 +0000 (12:38 -1000)
commit381898d8ca2a78319dfc9e6d8e44564754172766
treec2ffc628bec2f4fe23c90ee1cd16bd1dd2699656
parentd85328ee3c67ef08d2df7321150502f5f91ef87e
Bug 29790: Restore warning if deletion of serial item fails

If the deletion of a serial item failed, the UI did not provide a warning/error message.

Test plan:
0. Create a new subscription with "Create an item record when receiving
this serial"
1. Receive a new item, set a barcode
2. Check it out
3. Select the item you have received in the serial item list (page
"Serial collection information") and click "Delete selected issues"
4. Tick "Delete the associated items" and confirm the deletion
=> Without this patch the deletion fail but the UI does not warn it
=> With this patch applied you see a warning "one or more associated
items could not be deleted at this time."

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
serials/serials-collection.pl