]> 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 Cormack <chrisc@catalyst.net.nz>
Thu, 7 Apr 2011 02:00:11 +0000 (14:00 +1200)
commit8b582d863debf1a60c69560b1cb797a9931bdcf8
treeebfc4bd65f54fc4622a707a24dd2587b864c336a
parent0645f83c225c6b95e3b0c7b091b493481a35d3f2
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>
reserve/request.pl