From 57e47fce0fed8dc26d7b3d77b6182804c4132359 Mon Sep 17 00:00:00 2001 From: Laura_Escamilla Date: Tue, 2 Jul 2024 15:43:39 +0000 Subject: [PATCH] Bug 37144: Pass permission variable to the patron autocomplete --- koha-tmpl/intranet-tmpl/prog/js/staff-global.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js index ceaf8b8d57..59e2ebafaf 100644 --- a/koha-tmpl/intranet-tmpl/prog/js/staff-global.js +++ b/koha-tmpl/intranet-tmpl/prog/js/staff-global.js @@ -695,12 +695,13 @@ function patron_autocomplete(node, options) { __("years") + ")," : "") + - " " + - $format_address(item, { + " "+ + (ViewContactInformation ? + $format_address(item, { no_line_break: true, include_li: false, - }) + - " " + + }) : "") + + " " + (!singleBranchMode ? '' + item.library.name.escapeHtml() + -- 2.39.2