https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=37473
Bug ID: 37473
Summary: Circulation rule holdallowed set to not_allowed
results in warning when browsing a biblio record
Change sponsored?: ---
Product: Koha
Version: Main
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5 - low
Component: Searching
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Circulation rule holdallowed set to not_allowed results in warning when
browsing a biblio record :
> No method count found for Koha::Items
> DBIx::Class::SQLMaker::ClassicExtensions::puke(): Fatal: NULL-within-IN not
> implemented: The upcoming SQL::Abstract::Classic 2.0 will emit the logically
> correct SQL instead of raising this exception. at /home/koha/src/bin/../Koha/
> Objects.pm line 587
from C4/items.pm
> 64 my @hold_not_allowed_itypes = Koha::CirculationRules->search(
> 65 {
> 66 rule_name => 'holdallowed',
> 67 branchcode => undef,
> 68 categorycode => undef,
> 69 rule_value => 'not_allowed',
> 70 }
> 71 )->get_column('itemtype');
This results in pushing undef in an array and searching "not in" in that array,
which is forbidden.
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
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/