From ac31d8ae257d4e809bc9c2d510bc69b89f457fa4 Mon Sep 17 00:00:00 2001 From: Slava Shishkin Date: Tue, 28 Apr 2026 18:58:48 +0300 Subject: [PATCH] Bug 41227: Respect SuspendHoldsIntranet on patron holds page MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Laura_Escamilla Signed-off-by: Pedro Amorim --- koha-tmpl/intranet-tmpl/prog/js/holds.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/js/holds.js b/koha-tmpl/intranet-tmpl/prog/js/holds.js index 66ab228edb..3d701c0a50 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/holds.js +++ b/koha-tmpl/intranet-tmpl/prog/js/holds.js @@ -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) {