Bug 17741: Use Koha::Patron->holds when deleting a patron
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 7 Dec 2016 03:21:43 +0000 (03:21 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 13 Jan 2017 11:40:15 +0000 (11:40 +0000)
commit767a33a91eb58a1ec68bdfb6c159dd5d59e39209
tree53f09acabce35c5143290364997ce4c5bbd4037e
parent81585647ef6ab330cf3d7e6cb80717aa7bf891b9
Bug 17741: Use Koha::Patron->holds when deleting a patron

There is a TODO in Koha::Patron->delete, this method should call the
Koha::Patron->holds to retrieve the holds made by the patron we are
removing instead of calling Koha::Holds->search

Test plan:
  prove t/db_dependent/Koha/Patrons.t
Should return green

Signed-off-by: Josef Moravec <josef.moravec@gmail.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Patron.pm