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

--- Comment #7 from Jonathan Druart <[email protected]> 
---
(In reply to Fridolin SOMERS from comment #6)
> Some of our instances have sometimes an invalid date in items.onload (like
> 000-00-00). We don't know why but without this patch the page failes on
> error :
> "Can't locate object method \"ymd\" via package \"dateonly\" (perh"...)
> called at /home/koha/src/Koha/DateUtils.pm line 223

Ok but you are not fixing anything with this patch, just hide other problems:

course_reserves/course-details.tt: [% IF cr.item.onloan %]
reserve/request.tt:                [% IF ( itemloo.onloan ) %]
catalogue/detail.tt:               [% UNLESS ( item.itemnotforloan ||
item.notforloan_per_itemtype || item.onloan || item.itemlost || item.withdrawn
|| item.damaged || item.transfertwhen || item.reservedate ) %]

In all of these tests, onloan will be true when you are expecting it to be
false.

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://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/

Reply via email to