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

Magnus Enger <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Magnus Enger <[email protected]> ---
I get the same error on Koha 26.05.05, but in a different context:

"Holds to pull" (/cgi-bin/koha/circ/pendingreserves.pl) gives a 500 error. 

I see this in the logs: 

==> /var/log/koha/mykoha/plack-error.log <==
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
/usr/share/koha/lib/Koha/Objects.pm line 401

There are several rules like this in the DB: 

MariaDB [mykoha]> select * from circulation_rules where rule_name =
'holdallowed' and rule_value = 'not_allowed';
+------+------------+--------------+------------+-------------+-------------+
| id   | branchcode | categorycode | itemtype   | rule_name   | rule_value  |
+------+------------+--------------+------------+-------------+-------------+
|  866 | NULL       | NULL         | TOOLS      | holdallowed | not_allowed |
|  871 | NULL       | NULL         | 7DAY       | holdallowed | not_allowed |
| 1454 | MYKOHA     | NULL         | 1DAY       | holdallowed | not_allowed |

I tried re-creating this in KTD, with no luck. I tried adding a hold to a book,
setting this: 

MariaDB [koha_kohadev]> select * from circulation_rules where rule_name =
'holdallowed' and rule_value = 'not_allowed';
+----+------------+--------------+----------+-------------+-------------+
| id | branchcode | categorycode | itemtype | rule_name   | rule_value  |
+----+------------+--------------+----------+-------------+-------------+
| 38 | NULL       | NULL         | BK       | holdallowed | not_allowed |
+----+------------+--------------+----------+-------------+-------------+

and then visiting the "Holds to pull", but that does not give a 500 error, it
shows an empty list of holds. So there might be some other factor that triggers
the 500 error, that I have not spotted yet.

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
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