From fbf2cbd92792277a7bd4a1705c5bedde19f46e93 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Thu, 12 Jun 2025 09:54:16 +0200 Subject: [PATCH] Bug 40127: Move build_items_table outside of document.ready So it's not delayed and we catch have the error in the Cypress test. Otherwise the error appear too late (in the after each) and the test does not fail --- .../prog/en/modules/catalogue/detail.tt | 85 ++++++++++--------- 1 file changed, 43 insertions(+), 42 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt index 9135e7ef7d6..398b41d0f2a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -1260,6 +1260,11 @@ [% Asset.js("js/recalls.js") | $raw %] [% Asset.js("js/coce.js") | $raw %] [% Asset.js("lib/Chocolat/js/chocolat.js") | $raw %] + + [%# The following PROCESS needs: %] + [%# can_edit_items_from item_type_image_locations %] + [% PROCESS build_items_table_js biblio => biblio %] + [% IF ( Koha.Preference('CatalogConcerns') ) %] - [%# The following PROCESS needs: %] - [%# can_edit_items_from item_type_image_locations %] - [% PROCESS build_items_table_js biblio => biblio %] - [% CoverImagePlugins | $raw %] [% END # /jsinclude %] [% INCLUDE 'intranet-bottom.inc' %] -- 2.34.1