[Koha-bugs] [Bug 23376] Cleanup order receive page code

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Mar 17 15:26:23 CET 2022


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

--- Comment #26 from Jonathan Druart <jonathan.druart+koha at gmail.com> ---
(In reply to Emmi Takkinen from comment #25)
> We ran into a problem with our orders receive page and would like to know if
> anyone has run into same kind of issue. It seems if order.quantityreceived
> is more than 0 page orderreceive.pl/template orderreceive.tt dies on line
> 323 which reads [% IF ( order.items.count ) %]. In logs we have: 
> 
> "Template process failed: undef error - The method Koha::Item->count is not
> covered by tests!"
> 
> Changing order.items.count to items.count doesn't produce error but isn't
> really helpful since now there's no value on input "Quantity received", just
> 0 (this could also be a separate problem).

It should be orders.items.
It's certainly fixed on master since bug 29844.

Weird that it has not been reported before.

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


More information about the Koha-bugs mailing list