Koha-clms/Koha/Patron
Jonathan Druart bbe2216887 Bug 17738: Replace GetReservesFromBorrowernumber with Koha::Patron->get_holds
This patch replace the different calls to GetReservesFromBorrowernumber
with a calls to Koha::Patron->get_holds.
In some places we need to get a restricted set of holds, that's why we
process a search on this holds returned by ->get_holds (on the found
status for instance).

The changes are quite trivial and reading the diff should be enough to
catch bugs.

Test plan:
I would suggest to test this patch with patches from bug 17736 and bug 17737,
to place different kind of holds (biblio and item level, future and
past).
Then do a whole workflow to detect bug, view a record, delete record,
order, place a hold on an item which has been ordered, etc.
The hold's informations should always be the same without or without
these patches.

Tested both patches together, works as expected.
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
2017-07-05 13:42:52 -03:00
..
Attribute Bug 17755: (followup) Override ->search to allow filtering by branchcode 2017-03-24 18:32:48 +00:00
Password Bug 17762: Send lang to GetPreparedLetter 2017-05-09 20:56:41 +00:00
Attribute.pm Bug 17828: return $self to be consistent 2017-03-31 14:36:49 +00:00
Attributes.pm Bug 17792: Introduce Koha::Patron::Attribute(s) 2017-03-24 18:44:02 +00:00
Categories.pm Bug 15407: Koha::Patron::Categories - replace GetborCatFromCatType 2016-09-08 13:29:22 +00:00
Category.pm Bug 14637: Fix add patron category under MySQL 5.7 2016-12-28 13:31:20 +00:00
Debarments.pm Bug 16849: Move IsDebarred to Koha::Patron->is_debarred 2016-07-15 18:08:14 +00:00
Discharge.pm Bug 17738: Replace GetReservesFromBorrowernumber with Koha::Patron->get_holds 2017-07-05 13:42:52 -03:00
Files.pm Bug 16011: $VERSION - Remove empty BEGIN block 2016-03-24 17:20:41 +00:00
HouseboundProfile.pm Bug 5670: Housebound Readers Module 2016-10-21 18:17:57 +00:00
HouseboundProfiles.pm Bug 5670: Housebound Readers Module 2016-10-21 18:17:57 +00:00
HouseboundRole.pm Bug 5670: [QA Followup] Create HouseboundRole objects. 2016-10-21 18:18:05 +00:00
HouseboundRoles.pm Bug 5670: [QA Followup] Create HouseboundRole objects. 2016-10-21 18:18:05 +00:00
HouseboundVisit.pm Bug 5670: [Followup] Return Koha::Patron objects. 2016-10-21 18:17:58 +00:00
HouseboundVisits.pm Bug 5670: Housebound Readers Module 2016-10-21 18:17:57 +00:00
Image.pm Bug 15635: Change method type to _type for bug 15446 2016-03-04 12:54:20 +00:00
Images.pm Bug 15635: Change method type to _type for bug 15446 2016-03-04 12:54:20 +00:00
Message.pm Bug 17558: Fix adding manager id to patron messages in store method 2016-11-12 02:33:14 +00:00
Messages.pm Bug 15632 [QA Followup] - Change method type to _type for bug 15446 2016-03-03 21:22:16 +00:00
Modification.pm Bug 18461: (bug 13757 follow-up) Do not mix decode_json and to_json 2017-04-28 06:24:23 -04:00
Modifications.pm Bug 18461: (bug 13757 follow-up) Do not mix decode_json and to_json 2017-04-28 06:24:23 -04:00