[Koha-bugs] [Bug 9011] Add the ability to store the last patron to return an item
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jun 19 15:10:42 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=9011
--- Comment #114 from Jonathan Druart <jonathan.druart at biblibre.com> ---
Comment on attachment 39815
--> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=39815
Bug 9011 [QA Followup]
Review of attachment 39815:
--> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=9011&attachment=39815)
-----------------------------------------------------------------
::: C4/Circulation.pm
@@ +3198,5 @@
> }
>
> if ( C4::Context->preference('StoreLastBorrower') ) {
> + # Do not delete the newest old_issue for any itemnumber
> + $query .= " AND issue_id NOT IN ( SELECT issue_id FROM ( SELECT * FROM old_issues ORDER BY issue_id DESC ) AS oi GROUP BY itemnumber ) ";
I think that the NOT IN clause should be avoid here.
It can cause the query to be very slow.
See bug 13740.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list