https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39920
Martin Renvoize (ashimema) <martin.renvo...@openfifth.co.uk> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #182563|0 |1 is obsolete| | --- Comment #4 from Martin Renvoize (ashimema) <martin.renvo...@openfifth.co.uk> --- Created attachment 182744 --> https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=182744&action=edit Bug 39920: Update query for check previous checkout to use IN This patch alters the query for checking previous checkouts to use IN instead of a list of OR for itemnumbers. To test: 1 - On the command line: export DBIC_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 Signed-off-by: David Nind <da...@davidnind.com> Signed-off-by: Martin Renvoize <martin.renvo...@openfifth.co.uk> -- You are receiving this mail because: 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/