]> git.koha-community.org Git - koha.git/commit
Bug 16463: Replace discharge link with error message if user has checked out items
authorAleisha Amohia <aleishaamohia@hotmail.com>
Wed, 30 Aug 2017 23:26:38 +0000 (23:26 +0000)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 27 Oct 2017 10:09:44 +0000 (12:09 +0200)
commit4ea7a76d2666405ba66a085f4ff1a550c8d7ae6e
tree3c3dc463f57060b6d9eb0eb3b550c8cd2be631dd
parentbf637d2dae9a2bfe6cec04ca544b75548498f5bd
Bug 16463: Replace discharge link with error message if user has checked out items

To test:
1) Ensure the useDischarge syspref is enabled
2) Check out an item to a borrower
3) Log in to the OPAC as this borrower
4) Click the 'ask for a discharge' link in the nav
5) Click the 'Ask for a discharge' link
6) Notice you cannot be discharged because you have checkouts
7) Apply the patch, click the 'ask for a discharge' link in the nav
8) Notice the link has been replaced with an appropriate error message
9) Attempt to force the discharge URL:
/cgi-bin/koha/opac-discharge?op=request
10) Notice the message and you cannot be discharged.
11) Confirm that when you check in your item, the discharge link shows
again and works as expected.

Sponsored-by: Catalyst IT
Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 89528af3b089b2d17e3e7b212ea5608478f0ca84)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-discharge.tt
opac/opac-discharge.pl