Bug 39467 - Fix patron "View restrictions" link in messages
Summary: Fix patron "View restrictions" link in messages
Status: Pushed to main
Alias: None
Product: Koha
Classification: Unclassified
Component: Patrons (show other bugs)
Version: Main
Hardware: All All
: P5 - low minor
Assignee: David Gustafsson
QA Contact: Lucas Gass (lukeg)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-03-27 12:11 UTC by David Gustafsson
Modified: 2025-04-22 06:50 UTC (History)
3 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:
This patch fixes a problem where the 'View restrictions' buttons was not properly opening the 'Restrictions' tab when clicked.,25.05.00
Circulation function:


Attachments
Bug 39467: Fix patron "View restrictions" link in messages (1.70 KB, patch)
2025-03-27 12:17 UTC, David Gustafsson
Details | Diff | Splinter Review
Bug 39467: Fix patron "View restrictions" link in messages (1.75 KB, patch)
2025-04-01 12:37 UTC, Jesse Maseto
Details | Diff | Splinter Review
Bug 39467: Fix patron "View restrictions" link in messages (1.81 KB, patch)
2025-04-02 09:17 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
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>
Comment 4 Katrin Fischer 2025-04-22 06:50:34 UTC
Pushed for 25.05!

Well done everyone, thank you!