Bug 37424 - Batch checkout silently fails if item contains materials specified (952$3)
Summary: Batch checkout silently fails if item contains materials specified (952$3)
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Circulation (show other bugs)
Version: 24.05
Hardware: All All
: P5 - low normal
Assignee: Nick Clemens (kidclamp)
QA Contact: Testopia
URL:
Keywords:
Depends on: 37396
Blocks:
  Show dependency treegraph
 
Reported: 2024-07-22 19:23 UTC by Catrina Berka
Modified: 2024-10-29 22:25 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Screenshot where the 952$3 should display (162.92 KB, image/png)
2024-07-22 19:23 UTC, Catrina Berka
Details
Bug 37424: Display additional materials note in batch checkout (1.99 KB, patch)
2024-07-23 16:19 UTC, Nick Clemens (kidclamp)
Details | Diff | Splinter Review
Bug 37424: Display additional materials note in batch checkout (2.05 KB, patch)
2024-07-23 21:55 UTC, ByWater Sandboxes
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Catrina Berka 2024-07-22 19:23:55 UTC
Created attachment 169379 [details]
Screenshot where the 952$3 should display

As noted in 15718 and 23780, when using the batch checkout feature, there’s no preview of the 952$3 in the confirm checkout screen to let you know why the checkout needs confirmation, but also the checkout silently fails even when selecting "Checkout or renew". 

It sounded most similar to 30995, but my user has the force_checkout permission, so that doesn’t apply. 

Test plan:
1. Set a staff member with circ permissions, including FORCE_CHECKOUT
2. Turn on: CircConfirmItemParts, BatchCheckouts, BatchCheckoutsValidCategories (all)
3. Log in as staff member in step 1
4. Attempt to checkout an item with a 952$3 from the batch checkout tab
5. The item with a 952$3 displays, but the copy/text of the materials specified note does not. 
6. When you select “Checkout or renew,” you are taken back to the batch check out screen, but the item with the 952$3 is NOT checked out to the patron, nor are you given any warning that an error occurred.
Comment 1 Nick Clemens (kidclamp) 2024-07-23 16:19:05 UTC
Created attachment 169438 [details] [review]
Bug 37424: Display additional materials note in batch checkout

This patch adds a missing conditional for ADDITIONAL_MATERIALS to the batch checkout table

Test plan:
 1. Set a staff member with circ permissions, including FORCE_CHECKOUT
 2. Turn on: CircConfirmItemParts, BatchCheckouts, BatchCheckoutsValidCategories (all)
 3. Log in as staff member in step 1
 4. Attempt to checkout an item with a 952$3 from the batch checkout tab
 5. The item with a 952$3 displays, but the copy/text of the materials specified note does not.
 6. Do not confirm checkout
 7. Apply patch
 8. Try again, the materials note should show this time
 9. Confirm checkout
10. Success! Item is checked out
Comment 2 ByWater Sandboxes 2024-07-23 21:55:01 UTC
Created attachment 169447 [details] [review]
Bug 37424: Display additional materials note in batch checkout

This patch adds a missing conditional for ADDITIONAL_MATERIALS to the batch checkout table

Test plan:
 1. Set a staff member with circ permissions, including FORCE_CHECKOUT
 2. Turn on: CircConfirmItemParts, BatchCheckouts, BatchCheckoutsValidCategories (all)
 3. Log in as staff member in step 1
 4. Attempt to checkout an item with a 952$3 from the batch checkout tab
 5. The item with a 952$3 displays, but the copy/text of the materials specified note does not.
 6. Do not confirm checkout
 7. Apply patch
 8. Try again, the materials note should show this time
 9. Confirm checkout
10. Success! Item is checked out

Signed-off-by: Catrina Berka <catrina@bywatersolutions.com>
Comment 3 David Nind 2024-07-25 14:29:24 UTC
Hi Catrina.

It looks like you've signed this off.

So that you get the credit on the dashboard (https://dashboard.koha-community.org/), could you update the status to "Signed off"?

(It will also move the bug into the QA queue.)

David