Bug 32550: (bug 28445 follow-up) Fix 'Clear on loan' link on item batch mod
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 3 Jan 2023 12:59:07 +0000 (13:59 +0100)
committerJacob O'Mara <jacob.omara@ptfs-europe.com>
Wed, 25 Jan 2023 14:33:47 +0000 (14:33 +0000)
commit472aad196d53b2e0b84ab2878a580eb5f015d6a2
treebd9a6a5e64dced1c979085da3003754c9fcedd73
parentff749b5818ce63f37145147cb589682d9b2a6c80
Bug 32550: (bug 28445 follow-up) Fix 'Clear on loan' link on item batch mod

The 'Clear on loan' link displayed at the top of the batch item
modification tool has been broken by bug 28445.

data-is-onloan attribute is supposed to be 1 or 0, but we passed the
checkout (Koha::Checkout=HASH)

Test plan:
1. Enter a checked-out barcode in the 'Batch item modification' page
2. Click 'Continue'
3. Notice a table is loaded displaying the on-loan item with a ticked checkbox 4. Click the 'Clear on loan' link above the table
5. Notice the on-loan item is no longer selected

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
(cherry picked from commit cb06a5912886bea9dd9d3587536a81a6f45f640c)
Signed-off-by: Jacob O'Mara <jacob.omara@ptfs-europe.com>
Koha/UI/Table/Builder/Items.pm