]> git.koha-community.org Git - koha.git/commit
Bug 34891: Correct link on view restrictions button
authorOwen Leonard <oleonard@myacpl.org>
Fri, 22 Sep 2023 16:31:08 +0000 (16:31 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 6 Oct 2023 00:28:06 +0000 (14:28 -1000)
commite85119b370ffda7c264e528a29cf23f37c11e599
tree60f31bb1454635370f6a1e42e5592f536dbf1b42
parent92e977062cc70eb149e70e93e645b483d221a671
Bug 34891: Correct link on view restrictions button

This patch updates the button which appears on the circulation page
when a patron is restricted. Before this patch, clicking the button
would activate the restrictions tab but wouldn't scroll the page to make
the tab visible.

To test, apply the patch and check out to a patron who has one or more
restrictions.

- There should be a message on the page, "Restricted since..."
- Click the "View restrictions" button.
- The page should jump down so that the tabs are visible and the
  restrictions tab should be active.
- Test on the patron details page too.

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Emily Lamancusa <emily.lamancusa@montgomerycountymd.gov>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
(cherry picked from commit ca2fdda34281fb65c65c8cee0715868825794cd0)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/intranet-tmpl/prog/en/includes/patron_messages.inc