[Koha-bugs] [Bug 23081] Item search : Filter for Items with Zero Checkouts Returns No Results

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 23 22:13:02 CEST 2020


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

Andrew Fuerste-Henry <andrew at bywatersolutions.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |Needs Signoff

--- Comment #8 from Andrew Fuerste-Henry <andrew at bywatersolutions.com> ---
Confirmed that item search gives no results for number of checkouts=0 in 19.11.
However, in master I *do* get items with issues=null in item search results for
checkouts=0. So that search does work in master and I'm not sure what changed,
but this schema change seems worthwhile anyway.

To test:
- save and run this sql query in reports: select sum(if(issues is
null,1,0)),sum(if(issues=0,1,0)) from items
- you should see a lot of nulls and no zeros
- apply patch
- updatedatabase
- re-run your query and see that your nulls have changed to zeros
- create a new item
- rerun your query and see your new item is counted in the zeros, not the nulls

-- 
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