[Koha-bugs] [Bug 9367] Code optimization: CheckReserves is too often called
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jan 11 20:22:08 CET 2013
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9367
Kyle M Hall <kyle at bywatersolutions.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #14471|0 |1
is obsolete| |
--- Comment #2 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 14544
-->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=14544&action=edit
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 at bywatersolutions.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list