From cb8ff2632cd039caab2688daad29d7de6fe094b0 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Tue, 9 Jun 2020 18:02:14 +0200 Subject: [PATCH] Bug 25728: Don't explode if no CAN_* var defined Sponsored-by: Orex Digital Signed-off-by: Hugo Agud Signed-off-by: Katrin Fischer --- koha-tmpl/intranet-tmpl/prog/js/cataloging.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js index 6e0adb01cf..cc52385347 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/cataloging.js +++ b/koha-tmpl/intranet-tmpl/prog/js/cataloging.js @@ -89,7 +89,7 @@ var Select2Utils = { initSelect2: function(selects) { if ($.fn.select2) { - if ( ! CAN_user_parameters_manage_auth_values ) { + if ( window.CAN_user_parameters_manage_auth_values === undefined || ! CAN_user_parameters_manage_auth_values ) { $(selects).select2(); } else { $(selects).select2({ -- 2.11.0