[Koha-bugs] [Bug 24443] Consider NULL as 0 for issues in items search
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Fri Jan 17 20:53:34 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24443
Maryse Simard <maryse.simard at inlibro.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Attachment #97482|0 |1
is obsolete| |
--- Comment #10 from Maryse Simard <maryse.simard at inlibro.com> ---
Created attachment 97559
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=97559&action=edit
Bug 24443: Consider NULL as 0 for issues in items search
In items search, we can filter by items issues count, data coming from
items.issues.
Most of the time, for an item with no issues this column contains NULL.
This enhancement proposes to consider NULL as 0 to allow searching items with
no issues.
Test plan:
1) Use SQL to count items with items.issues = NULL :
select count(*) from items where issues is null;
2) Go to items search
3) Perform search with filter "Checkout count" = 0
4) Check you get the same number of results as SQL query
Signed-off-by: Maryse Simard <maryse.simard at inlibro.com>
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list