[Koha-bugs] [Bug 24677] New: wrong year picked in serials
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Feb 18 09:08:55 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24677
Bug ID: 24677
Summary: wrong year picked in serials
Change sponsored?: ---
Product: Koha
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Serials
Assignee: koha-bugs at lists.koha-community.org
Reporter: jonathan.druart at bugs.koha-community.org
QA Contact: testopia at bugs.koha-community.org
CC: colin.campbell at ptfs-europe.com
>From bug 24002:
commit 3d3336ed6607d80b72502075ebf9567cf48e1709
Bug 24002: Incorrect DATE value: '00-00-0000' in C4/Serials.pm
The changes from this patch are like:
-
year(IF(serial.publisheddate="00-00-0000",serial.planneddate,serial.publisheddate))
as year,
+ year(IF(serial.publisheddate IS
NULL,serial.publisheddate,serial.planneddate)) as year,
This is stilly, if publisheddate is null we do not want to return it.
It comes from a wrong copy/paste from the other commits:
- ORDER BY
IF(publisheddate<>'0000-00-00',publisheddate,planneddate) DESC";
+ ORDER BY IF(publisheddate IS
NULL,planneddate,publisheddate) DESC";
="00-00-0000" vs <>"0000-00-00"
--
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