Bug 41227: Respect SuspendHoldsIntranet on patron holds page

Test plan:
1. Set SuspendHoldsIntranet to "Don't allow"
2. Place a hold for a patron
3. Open the patron holds table
4. Confirm the Suspend button is visible in the Suspend column
5. Apply the patch
6. Reload the patron holds table
7. Confirm the Suspend button is no longer visible
8. Set SuspendHoldsIntranet to "Allow"
9. Reload the patron holds table
10. Confirm the Suspend button is visible again

Signed-off-by: Anneli Österman <anneli.osterman@koha-suomi.fi>
Signed-off-by: Laura_Escamilla <laura.escamilla@bywatersolutions.com>
Signed-off-by: Pedro Amorim <pedro.amorim@openfifth.co.uk>
This commit is contained in:
Slava Shishkin 2026-04-28 18:58:48 +03:00 committed by Pedro Amorim
parent ea185b6833
commit ac31d8ae25
No known key found for this signature in database
GPG Key ID: 06B75BA7F3894D55
1 changed files with 4 additions and 0 deletions

View File

@ -415,6 +415,10 @@ $(document).ready(function () {
data: function (oObj) {
holds[oObj.reserve_id] = oObj; //Store holds for later use
if (!SuspendHoldsIntranet) {
return "";
}
if (oObj.found) {
return "";
} else if (oObj.suspend == 1) {