Bug 29504: Allow 'ADDITIONAL_MATERIALS' check to be confirmed
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Mon, 22 Nov 2021 11:33:25 +0000 (11:33 +0000)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 21 Jun 2022 17:43:07 +0000 (14:43 -0300)
commit49ef741405d0b81ba0cb37dd81fa9a4b5aba5bbb
tree12206c802100fc56c2a7784367145c6b4af4c599
parent407564e3940ad08030383078fd1ce5c530a19f2d
Bug 29504: Allow 'ADDITIONAL_MATERIALS' check to be confirmed

The additional materials check when CircConfirmParts is enabled was
errantly relying upon the 'FORCE_CHECKOUT' permission.  This patch
updates the template to allow confirmation as well as cancellation of
chekout.

Test plan
1. Set a staff member with circ permissions, but not FORCE_CHECKOUT
2. Turn on CircConfirmItemParts
3. Log in as staff member in step 1
4. Attempt to checkout an item with a 952$3
5. The only option given is the Continue button (with a red X) and when
   clicked, the item does not get checked out.
6. Apply patch
7. Repeat step 4.
8. You should now have the option to 'Yes, check out (Y)' or
   'No, don't check out (N)'

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt