Koha/members
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
..
boraccount.pl Bug 18423 - Followup - enable Add child button for institutional borrowers 2017-04-21 07:42:58 -04:00
default_messageprefs.pl Bug 9978: Replace license header with the correct license (GPLv3+) 2015-04-20 09:59:38 -03:00
deletemem.pl Bug 18423 - Followup - enable Add child button for institutional borrowers 2017-04-21 07:42:58 -04:00
discharge.pl Bug 17738: Replace GetReservesFromBorrowernumber with Koha::Patron->get_holds 2017-07-05 13:42:52 -03:00
discharges.pl Bug 15548: Move new patron related code to Patron* 2016-03-03 14:38:26 -07:00
files.pl Bug 18423 - Followup - enable Add child button for institutional borrowers 2017-04-21 07:42:58 -04:00
guarantor_search.pl Bug 15758: Koha::Libraries - Remove GetBranches 2016-09-08 14:36:03 +00:00
housebound.pl Bug 18632: Remove 'CGI::param called in list context' warnings 2017-05-28 22:25:22 -04:00
mancredit.pl Bug 18423 - Followup - enable Add child button for institutional borrowers 2017-04-21 07:42:58 -04:00
maninvoice.pl Bug 18423 - Followup - enable Add child button for institutional borrowers 2017-04-21 07:42:58 -04:00
member-flags.pl Bug 18423 - Followup - enable Add child button for institutional borrowers 2017-04-21 07:42:58 -04:00
member-password.pl Bug 18110: Corrected display address format 2017-04-28 08:50:19 -04:00
member.pl Bug 17375: Search by dateofbirth - handle invalid dates 2016-10-27 13:18:32 +00:00
memberentry.pl Bug 18179: Update existing calls 2017-06-05 11:35:58 -03:00
members-home.pl Bug 15758: Koha::Libraries - Remove GetBranchesLoop 2016-09-08 14:36:02 +00:00
members-update-do.pl Bug 15758: Koha::Libraries - Ultimate duel for C4::Branch 2016-09-08 14:36:04 +00:00
members-update.pl Bug 13757: Better display for attr changes in members-update.pl 2017-03-24 18:45:17 +00:00
mod_debarment.pl Bug 16154: CGI->multi_param - Force scalar context 2016-04-26 23:16:43 +00:00
moremember.pl Bug 18647: Resolve internal server error on category_type 2017-05-20 13:57:14 +00:00
nl-search.pl Bug 15407: Koha::Patron::Categories - replace C4::Category->all 2016-09-08 13:29:03 +00:00
notices.pl Bug 18423 - Followup - enable Add child button for institutional borrowers 2017-04-21 07:42:58 -04:00
patronimage.pl Bug 17423 - patronimage.pl permission is too restrictive 2016-10-17 23:44:25 +00:00
pay.pl Bug 18179: Update existing calls 2017-06-05 11:35:58 -03:00
paycollect.pl Bug 18423 - Followup - enable Add child button for institutional borrowers 2017-04-21 07:42:58 -04:00
print_overdues.pl Bug 12933: (QA followup) Rename GetOverdues to GetOverduesForPatron 2015-11-04 12:41:29 -03:00
printfeercpt.pl Bug 18423 - Followup - enable Add child button for institutional borrowers 2017-04-21 07:42:58 -04:00
printinvoice.pl Bug 18423 - Followup - enable Add child button for institutional borrowers 2017-04-21 07:42:58 -04:00
printslip.pl
purchase-suggestions.pl
readingrec.pl Bug 18423 - Followup - enable Add child button for institutional borrowers 2017-04-21 07:42:58 -04:00
routing-lists.pl Bug 18423 - Followup - enable Add child button for institutional borrowers 2017-04-21 07:42:58 -04:00
setstatus.pl Bug 16911: Rename extend_subscription with renew_account 2016-09-09 09:45:32 +00:00
statistics.pl Bug 18423 - Followup - enable Add child button for institutional borrowers 2017-04-21 07:42:58 -04:00
summary-print.pl Bug 17843: [QA Follow-up] Some polishing 2017-07-05 13:42:21 -03:00
update-child.pl Bug 15407: Koha::Patron::Categories - replace GetborCatFromCatType 2016-09-08 13:29:22 +00:00