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

--- Comment #1 from Nick Clemens (kidclamp) <n...@bywatersolutions.com> ---
Created attachment 182528
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=182528&action=edit
Bug 39920: Update query for check previous checkout to use IN

This patch simply alters the query fro checkign previous checkouts to use
IN instead of a list of OR for itemnumbers

To test:
1 - On the command line:
    export DBICE_TRACE=1
2 - perl -e 'use Koha::Patrons;my $patron = Koha::Patrons->find(5);my $item =
Koha::Items->find(54);warn
$item->itemnumber;$patron->do_check_for_previous_checkout( $item->unblessed );'
3 - Note the query
4 - Apply patch
5 - Repeat 2
6 - Note the shorter query

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
Koha-bugs@lists.koha-community.org
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to