From c1d94909e78e71b91f948d160ed2d5b627a3a4bd Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Tue, 5 Nov 2024 11:16:01 +0000 Subject: [PATCH] Bug 36221: (QA follow-up): Fix opac check To address Victor's comment #32 --- Koha/ILL/Backend/shared-includes/shared.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Koha/ILL/Backend/shared-includes/shared.js b/Koha/ILL/Backend/shared-includes/shared.js index 75a055a050..985a19bcee 100644 --- a/Koha/ILL/Backend/shared-includes/shared.js +++ b/Koha/ILL/Backend/shared-includes/shared.js @@ -1,5 +1,5 @@ var core = [ [% whole.core %] ]; -var opac = [ [% opac %] ]; +var opac = [% opac || 0 %]; document.addEventListener('DOMContentLoaded', function() { $('#add-new-fields').click(function(e) { e.preventDefault(); -- 2.39.5