[Koha-bugs] [Bug 30395] New: Internal server error at reserve/request.pl on a biblio with non-ISO formatted date in publicationyear
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Mar 29 13:25:31 CEST 2022
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=30395
Bug ID: 30395
Summary: Internal server error at reserve/request.pl on a
biblio with non-ISO formatted date in publicationyear
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: major
Priority: P5 - low
Component: Hold requests
Assignee: koha-bugs at lists.koha-community.org
Reporter: julian.maurice at biblibre.com
QA Contact: testopia at bugs.koha-community.org
CC: gmcharlt at gmail.com
Steps to reproduce:
1. Verify that in the default MARC framework there is a field linked to
biblioitems.publicationyear (typically it's 210$d for UNIMARC)
2. Create a biblio with a non ISO-formatted date in this field. It can be a
"YYYY" year for instance. Create an item for this biblio.
3. Try to place a hold on this biblio. You should get an internal server error
and the following message in the logs:
Template process failed: undef error - The given date (2013) does not match the
date format (iso) at /home/koha/src/Koha/DateUtils.pm line 204.
It looks like the problem was introduced by bug 29660 which replaces an 'html'
filter by a '$KohaDates' filter for publicationyear
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list