]> git.koha-community.org Git - koha.git/commit
Bug 32121: Show an alert when adding a checked out item to an item bundle
authorJulian Maurice <julian.maurice@biblibre.com>
Mon, 7 Nov 2022 13:30:34 +0000 (14:30 +0100)
committerJacob O'Mara <jacobomara901@gmail.com>
Wed, 10 May 2023 14:17:54 +0000 (15:17 +0100)
commit320b29cbde84e763b9415bea58917a1257eec61a
tree94702df17e05eafab5b61a2baa915c9fe7608bef
parent1f7b8f910c73983ff356714d93469c0ccd2d6857
Bug 32121: Show an alert when adding a checked out item to an item bundle

When trying to add a checked out item to an item bundle, an alert
message will show up, giving the user a chance to return the item
immediately before adding it to the bundle

Test plan:
1. Create an item bundle (see bug 28854 comment 458)
2. Create a biblio with one item and check out this item.
3. Try to add the checked out item to the bundle
   You should see a message saying that the item is checked out. Next to
   this message should be a button "Check in and add to bundle".
4. Click on the button. There should be a message saying that the item
   was added to the bundle.
5. Close the modal window and verify that the item was correctly
   returned and added to the bundle

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit de362442661cc5c2e66bd090a2eda474c19b2efb)
Signed-off-by: Jacob O'Mara <jacobomara901@gmail.com>
Koha/Exceptions/Checkin.pm [new file with mode: 0644]
Koha/Exceptions/Item/Bundle.pm
Koha/Item.pm
Koha/REST/V1/Items.pm
api/v1/swagger/definitions/bundle_link.yaml
koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt
t/db_dependent/Koha/Item.t