[Koha-bugs] [Bug 33691] Improve query for do_check_for_previous_checkout

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Tue May 9 03:44:15 CEST 2023


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=33691

David Nind <david at davidnind.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
 Attachment #150785|0                           |1
        is obsolete|                            |

--- Comment #5 from David Nind <david at davidnind.com> ---
Created attachment 150818
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=150818&action=edit
Bug 33691: Improve query for do_check_for_previous_checkout

do_check_for_previous_checkout will pass a list of itemnumbers as part of the
query. This could be hundreds of items or more. It makes sense to check by
biblionumber instead when possible.

Test Plan:
1) prove t/db_dependent/Patron/Borrower_PrevCheckout.t
2) Apply this patch
3) prove t/db_dependent/Patron/Borrower_PrevCheckout.t
4) Test still pass!

Signed-off-by: David Nind <david at davidnind.com>

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


More information about the Koha-bugs mailing list