Bugzilla – Attachment 182462 Details for
Bug 39903
Catalog details page emits error if librarian cannot moderate comments on the record
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 39903: Catalog details page emits error if librarian cannot moderate comments on the record
Bug-39903-Catalog-details-page-emits-error-if-libr.patch (text/plain), 1.70 KB, created by
Biblibre Sandboxes
on 2025-05-14 17:50:19 UTC
(
hide
)
Description:
Bug 39903: Catalog details page emits error if librarian cannot moderate comments on the record
Filename:
MIME Type:
Creator:
Biblibre Sandboxes
Created:
2025-05-14 17:50:19 UTC
Size:
1.70 KB
patch
obsolete
>From 1d73b1bf731d60530a2ebcb4dec653e02c1d36bc Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >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 > >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 <oleonard@myacpl.org> >Signed-off-by: Christopher <cbrannon@cdalibrary.org> >--- > 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 dd588e4874..92f1925831 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 @@ > <th>Date</th> > <th>Status</th> > <th>Comment</th> >- <th class="no-sort">Actions</th> >+ [% IF ( CAN_user_tools_moderate_comments ) %] >+ <th class="no-sort">Actions</th> >+ [% END %] > </tr> > </thead> > <tbody> >-- >2.39.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 39903
:
182454
|
182456
| 182462