From 7a78a6429a1dd9b90745b28f69ef9ffd0c28a74e Mon Sep 17 00:00:00 2001 From: Pedro Amorim Date: Thu, 11 Jul 2024 16:39:06 +0000 Subject: [PATCH] Bug 37330: Fix callback table selector 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. --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 3 +-- 1 file changed, 1 insertion(+), 2 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 d465aca384..f48e43e2ad 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -1480,8 +1480,7 @@ } let build_items_table_drawncallback = function (table) { - let tab_id = table.parents('.tab-pane').attr('id'); - verify_cover_images($("#" + tab_id + '_table')); + verify_cover_images($('#'+table.attr('id'))); }; function removeLocalImage(imagenumber) { -- 2.39.2