From 9c84bfbe912ff54b8796712f1fdb215332e37b41 Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 11 Jul 2024 16:39:06 +0000 Subject: [PATCH] Bug 37330: Add drawcallback if LocalCoverImages 1) Enable LocalCoverImages 2) Visit a biblio: /cgi-bin/koha/catalogue/detail.pl?biblionumber=294 3) On the actions column, click the arrow and click upload image, submit an image 4) Go back to biblio, notice the image shows for the specific item 5) Disable StaffDetailItemSelection 6) Go back to biblio, notice the image is gone 7) Apply patch. Repeat. --- .../includes/html_helpers/tables/items/catalogue_detail.inc | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc index 1144657822..f688406221 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/html_helpers/tables/items/catalogue_detail.inc @@ -841,6 +841,11 @@ if ( drawcallback ) { drawcallback(this); } }, [% END %] + [% IF LocalCoverImages %] + drawCallback: function(settings){ + if ( drawcallback ) { drawcallback(this); } + }, + [% END %] ...dt_options, }, items_table_settings[tab_id], -- 2.39.2