Bug 39903 - Catalog details page emits error if librarian cannot moderate comments on the record
Summary: Catalog details page emits error if librarian cannot moderate comments on the...
Status: Signed Off
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: unspecified
Hardware: All All
: P5 - low minor
Assignee: Kyle M Hall (khall)
QA Contact: Testopia
URL:
Keywords:
: 39702 (view as bug list)
Depends on:
Blocks:
 
Reported: 2025-05-14 14:44 UTC by Kyle M Hall (khall)
Modified: 2025-05-14 17:51 UTC (History)
2 users (show)

See Also:
GIT URL:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 39903: Catalog details page emits error if librarian cannot moderate comments on the record (1.62 KB, patch)
2025-05-14 14:47 UTC, Kyle M Hall (khall)
Details | Diff | Splinter Review
Bug 39903: Catalog details page emits error if librarian cannot moderate comments on the record (1.65 KB, patch)
2025-05-14 15:10 UTC, Owen Leonard
Details | Diff | Splinter Review
Bug 39903: Catalog details page emits error if librarian cannot moderate comments on the record (1.70 KB, patch)
2025-05-14 17:50 UTC, Biblibre Sandboxes
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Kyle M Hall (khall) 2025-05-14 14:44:37 UTC
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.
Comment 1 Kyle M Hall (khall) 2025-05-14 14:47:01 UTC
Created attachment 182454 [details] [review]
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!
Comment 2 Christopher Brannon 2025-05-14 15:00:16 UTC
*** Bug 39702 has been marked as a duplicate of this bug. ***
Comment 3 Owen Leonard 2025-05-14 15:10:37 UTC
Created attachment 182456 [details] [review]
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>
Comment 4 Biblibre Sandboxes 2025-05-14 17:50:19 UTC
Created attachment 182462 [details] [review]
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>
Comment 5 Christopher Brannon 2025-05-14 17:51:07 UTC
Works as described.  Thank you!