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

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Fri Mar 18 07:59:50 CET 2022


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

--- Comment #27 from Emmi Takkinen <emmi.takkinen at koha-suomi.fi> ---
(In reply to Jonathan Druart from comment #26)
> (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.

Yep, changing order.items to orders.items fixed error. I'll provide patch here.

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


More information about the Koha-bugs mailing list