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 Bug 7671 : add a real primary key accountlines_id in accountlines 2012-09-15 07:31:58 +02:00
default_messageprefs.pl Fix FSF address in directory members/ 2010-03-16 20:17:55 -04:00
deletemem.pl Bug 7310: Improving list permissions: Deleting patron 2012-03-21 16:47:03 +01:00
files.pl Bug 8598 - No patron image or home library on Files & Statistics tabs 2012-09-13 18:12:17 +02:00
guarantor_search.pl bug_6253: Unified member Search() 2011-10-19 16:23:02 +13:00
mancredit.pl Bug 6964 - 'Add child' function should be dependant on system preference 'borrowerRelationship' 2012-02-02 11:36:05 +01:00
maninvoice.pl Bug 6964 - 'Add child' function should be dependant on system preference 'borrowerRelationship' 2012-02-02 11:36:05 +01:00
member-flags.pl Bug 6964 - 'Add child' function should be dependant on system preference 'borrowerRelationship' 2012-02-02 11:36:05 +01:00
member-password.pl Fix for Bug 5280 - Fix password field so that the password is masked as it is entered 2012-02-13 16:39:59 +01:00
member-picupload.pl Bug 6679 :[SIGNED-OFF] members dir now passes perlcritic tests 2012-04-10 13:44:53 +02:00
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 Bug 7067 - OPAC Borrower Self Registration 2012-12-14 08:08:59 -05:00
members-update.pl Bug 7067 - OPAC Borrower Self Registration 2012-12-14 08:08:59 -05:00
moremember.pl Bug 9367: Code optimization: CheckReserves is too often called 2013-03-16 11:49:43 -04:00
notices.pl Bug 6964 - 'Add child' function should be dependant on system preference 'borrowerRelationship' 2012-02-02 11:36:05 +01:00
patronimage.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
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 Bug 4440: Revised combined patch to print fee receipts and invoices 2010-11-18 14:33:27 +13:00
printinvoice.pl Bug 7671 : add a real primary key accountlines_id in accountlines 2012-09-15 07:31:58 +02:00
printslip.pl Bug 7563 - Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference 2012-07-06 18:23:39 +02:00
readingrec.pl Bug 8017 reduce manipulation of GetAllIssues return 2012-09-13 18:51:45 +02:00
routing-lists.pl Bug 7839 [ENH] : Add tab in patron record to show patron's routing lists 2012-08-02 11:26:43 +02:00
setdebar.pl Bug 6328 Fixes for comment 35 2011-11-25 14:00:47 +01:00
setstatus.pl Bug 6261 [Revised] Consolidate patron toolbar include files 2012-12-27 18:36:42 -05:00
statistics.pl Bug 8598 - No patron image or home library on Files & Statistics tabs 2012-09-13 18:12:17 +02:00
update-child.pl Bug 5673: test guarantorid consistently 2011-02-03 22:10:24 +13:00