[Koha-bugs] [Bug 17821] due date in intranet search results should use TT date plugin

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed Apr 12 00:32:26 CEST 2017


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

--- Comment #7 from Jonathan Druart <jonathan.druart at bugs.koha-community.org> ---
(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.


More information about the Koha-bugs mailing list