Koha/members
Jonathan Druart fad1f44d42 Bug 9367: Code optimization: CheckReserves is too often called
This patch rewrites the GetReserveStatus routine in order to take in
parameter the itemnumber and/or the biblionumber.

In some places, the C4::Reserves::CheckReserves routine is called when
we just want to get the status of the reserve. In these cases, the
C4::Reserves::GetReserveStatus is now called.
This routine executes 1 sql query (or 2 max).

Test plan:
Check that there is no regression on the different pages where reserves
are used. The different status will be the same than before applying
this patch.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
2013-03-16 11:49:43 -04:00
..
boraccount.pl
default_messageprefs.pl
deletemem.pl
files.pl
guarantor_search.pl
mancredit.pl
maninvoice.pl
member-flags.pl
member-password.pl
member-picupload.pl
member.pl Bug 9407: patrons search should match substrings 2013-01-22 18:56:23 -05:00
memberentry.pl Bug 9586 - Remove $ENV{DEBUG} info from Member Template 2013-03-07 09:49:10 -05:00
members-home.pl Bug 7067 [Follow-up: templates] allow patron self registration via the opac 2012-12-14 08:08:59 -05:00
members-update-do.pl
members-update.pl
moremember.pl Bug 9367: Code optimization: CheckReserves is too often called 2013-03-16 11:49:43 -04:00
notices.pl
patronimage.pl
pay.pl Bug 9582: Remove unused code from members/pay.pl 2013-02-20 08:17:34 -05:00
paycollect.pl Bug 9141 - Untranslatable strings on "pay an amount..." page 2013-01-07 20:48:42 -05:00
printfeercpt.pl
printinvoice.pl
printslip.pl
readingrec.pl
routing-lists.pl
setdebar.pl
setstatus.pl Bug 6261 [Revised] Consolidate patron toolbar include files 2012-12-27 18:36:42 -05:00
statistics.pl
update-child.pl