]> git.koha-community.org Git - koha.git/commit
Bug 6100: request.pl should check maxreserves exists
authorJared Camins-Esakov <jcamins@bywatersolutions.com>
Wed, 6 Apr 2011 18:00:47 +0000 (14:00 -0400)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Sat, 16 Apr 2011 17:16:35 +0000 (13:16 -0400)
commit6078357610cdad24725c54ad488656d95a57ef77
treef7b3ac728340a6a2b9ebcab8558e9211b4899f4d
parentf98b76bfa84ce2f9d833a2f0fa5faa90cd5cd555
Bug 6100: request.pl should check maxreserves exists

Adds a check to confirm that the maxreserves syspref actually has a value before
using it. Also fixes an off-by-one error in the maxreserves calculation that
would allow librarians to place maxreserves + 1 holds for patrons.

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 8b582d863debf1a60c69560b1cb797a9931bdcf8)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
reserve/request.pl