[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
Tue Jan 8 16:59:04 CET 2013


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9367

--- Comment #1 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Created attachment 14471
  -->
http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=14471&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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.


More information about the Koha-bugs mailing list