From 6459970926c62374304a37c453afcfc229c373a2 Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Wed, 14 May 2025 10:45:09 -0400 Subject: [PATCH] Bug 39903: Catalog details page emits error if librarian cannot moderate comments on the record Content-Type: text/plain; charset=utf-8 If a librarian cannot moderate comments and a bib has comments, the error "Something went wrong when loading the table." will pop up during the page load. Test Plan: 1) Add a comment to a record 2) Log in to the staff interface with a librarian that cannot moderate comments 3) Browse to the "Normal" view for that record 4) Note the error message 5) Apply this patch 6) Reload the page 7) No error! Signed-off-by: Owen Leonard Signed-off-by: Christopher Signed-off-by: Marcel de Rooy --- koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 9135e7ef7d..5f026f36d3 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/catalogue/detail.tt @@ -889,7 +889,9 @@ Date Status Comment - Actions + [% IF ( CAN_user_tools_moderate_comments ) %] + Actions + [% END %] -- 2.39.5