]> git.koha-community.org Git - koha.git/commit
Bug 14655: Add a warning if the checkin will fail
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 18 Aug 2015 17:10:37 +0000 (18:10 +0100)
committerLiz Rea <wizzyrea@gmail.com>
Tue, 22 Sep 2015 23:14:58 +0000 (11:14 +1200)
commit9d7e88e32582c9561d20d5931a9864ccbc381b7f
tree5996924399d17766b6b7a3acb526900da6f78156
parent2776573ba695b817cb7f30bc93437d63b5c85043
Bug 14655: Add a warning if the checkin will fail

On the checkin and checkout page, the checkin will fail if the patron
has requested the privacy and the AnonymousPatron is not correctly set.

This patch adds a warning message on both pages.

Test plan:
0/ Be sure you don't have any patron with privacy=2 (Never)
1/ Set OPACPrivacy, not AnonymousPatron
2/ Go on the checkin, you should a warning (same as before this patch).
3/ Set the privacy=2 for a patron
4/ Go on the circulation page, a warning should appear (for this
specific patron)
5/ Check an item out to this patron
6/ Check the item in on the checkin page.
The item is not checked in and you get a specific message for this
patron.

Confirm other/correct situations don't trigger the messages.

Followed test plan. Works as expected.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Signed-off-by: Tomas Cohen Arazi <tomascohen@unc.edu.ar>
(cherry picked from commit cb2151529e0c2d031a01e68bd5deab26d2ffbaff)
Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
(cherry picked from commit 625aec5b8541f8e83fa3bbea473616f90ab1396d)
Signed-off-by: Liz Rea <wizzyrea@gmail.com>
circ/returns.pl
koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt
koha-tmpl/intranet-tmpl/prog/en/modules/circ/returns.tt