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

--- Comment #15 from Kyle M Hall (khall) <[email protected]> ---
Created attachment 209522
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=209522&action=edit
Bug 43102: (QA follow-up) Add unit test for filter_by_available on a limited
resultset

Before this bug, filter_by_available returned the available items among
those the resultset contains. It now builds on $self->search, so the
LIMIT is applied after the availability conditions and the result can
include items that were never in the resultset.

For a resultset of a record's two oldest items where the oldest is
checked out, filter_by_available should return just the second oldest
item. Instead it returns the second and third oldest items.

This patch adds a unit test that demonstrates the problem.

Test Plan:
1) Apply this patch
2) prove t/db_dependent/Koha/Items.t
3) Note the test fails!

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to