Bug 39467

Summary: Fix patron "View restrictions" link in messages
Product: Koha Reporter: David Gustafsson <glasklas>
Component: PatronsAssignee: David Gustafsson <glasklas>
Status: Passed QA --- QA Contact: Lucas Gass (lukeg) <lucas>
Severity: enhancement    
Priority: P5 - low CC: gmcharlt, kyle.m.hall, lucas
Version: Main   
Hardware: All   
OS: All   
Change sponsored?: --- Patch complexity: Trivial patch
Documentation contact: Documentation submission:
Text to go in the release notes:
Version(s) released in:
This patch fixes a problem where the 'View restrictions' buttons was not properly opening the 'Restrictions' tab when clicked.
Circulation function:
Attachments: Bug 39467: Fix patron "View restrictions" link in messages
Bug 39467: Fix patron "View restrictions" link in messages
Bug 39467: Fix patron "View restrictions" link in messages

Description David Gustafsson 2025-03-27 12:11:38 UTC
The "View restrictions" link in patron messages does not currently work. Here is a patch to fix this.
Comment 1 David Gustafsson 2025-03-27 12:17:16 UTC
Created attachment 179768 [details] [review]
Bug 39467: Fix patron "View restrictions" link in messages

Currently nothing happens when clicking the "View restrictions" link
in patron messages. Using the bootstrap api to open it resolves the
issue.

To test:
1) Go to a patrons details page, click "Restrictions" and add amanual
   restriction.
2) A message with a "View restrictions" link should appear.
3) Clicking this link does not open the "Restrictions" tab as it should.
4) Apply patch
5) Now this "View restrictions" link should open the "Restrictions" tab

Sponsored-by: Gothenburg University Library
Comment 2 Jesse Maseto 2025-04-01 12:37:13 UTC
Created attachment 180154 [details] [review]
Bug 39467: Fix patron "View restrictions" link in messages

Currently nothing happens when clicking the "View restrictions" link
in patron messages. Using the bootstrap api to open it resolves the
issue.

To test:
1) Go to a patrons details page, click "Restrictions" and add amanual
   restriction.
2) A message with a "View restrictions" link should appear.
3) Clicking this link does not open the "Restrictions" tab as it should.
4) Apply patch
5) Now this "View restrictions" link should open the "Restrictions" tab

Sponsored-by: Gothenburg University Library
Signed-off-by: Jesse Maseto <jesse@bywatersolutions.com>
Comment 3 Lucas Gass (lukeg) 2025-04-02 09:17:04 UTC
Created attachment 180270 [details] [review]
Bug 39467: Fix patron "View restrictions" link in messages

Currently nothing happens when clicking the "View restrictions" link
in patron messages. Using the bootstrap api to open it resolves the
issue.

To test:
1) Go to a patrons details page, click "Restrictions" and add amanual
   restriction.
2) A message with a "View restrictions" link should appear.
3) Clicking this link does not open the "Restrictions" tab as it should.
4) Apply patch
5) Now this "View restrictions" link should open the "Restrictions" tab

Sponsored-by: Gothenburg University Library
Signed-off-by: Jesse Maseto <jesse@bywatersolutions.com>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>