]> git.koha-community.org Git - koha.git/commit
Bug 19056: Replace C4::Reserves::GetReserveCount with Koha::Patron->holds->count
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Mon, 7 Aug 2017 20:29:43 +0000 (17:29 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 1 Sep 2017 16:00:05 +0000 (13:00 -0300)
commit7f27ef71e26720604b738c86c084b91858ef7c1a
tree0add96c2b2fd33bc1f498c1773c948f4dd0a407b
parent9cc7268362219e39b22aebb03a83e013f467d93a
Bug 19056: Replace C4::Reserves::GetReserveCount with Koha::Patron->holds->count

This subroutine is only used once and can easily be replaced with
Koha::Patron->holds->count

Test plan:
- Set maxreserves=5
- Place 3 holds for a given patron
- Place again 3 holds for this patron
3+3 > 5 => The holds must not be placed

Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Julian Maurice <julian.maurice@biblibre.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
C4/Reserves.pm
reserve/request.pl
t/db_dependent/Holds.t