[Koha-bugs] [Bug 27580] NULL values not correctly handled in Koha::Items->filter_by_visible_in_opac

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Jan 29 20:46:54 CET 2021


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

--- Comment #1 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 116076
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=116076&action=edit
Bug 27580: Regression tests

This test makes all the generated sample items have undef copynumber,
and all rules are added copynumber => [ 2 ] on the tests as
suggested by Andrew on his failing example.

The tests are expected to pass. i.e. copynumber is clearly not equal to
2, so those items shouldn't be hidden.

To test:
1. Apply this patch
2. Run:
   $ kshell
  k$ prove t/db_dependent/Koha/Items.t
=> FAIL: Tests fail! undef is considered in [ 2 ]

Signed-off-by: Tomas Cohen Arazi <tomascohen at theke.io>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list