Bug 24002: Incorrect DATE value: '0000-00-00' in C4/Serials.pm
DBD::mysql::st execute failed: Incorrect DATE value: '0000-00-00' [for Statement "SELECT serialid,serialseq, status, planneddate, publisheddate,
publisheddatetext, notes, routingnotes
FROM serial
WHERE subscriptionid = ?
AND status IN ( 2,4,41,42,43,44,5 )
ORDER BY IF(publisheddate<>'0000-00-00',publisheddate,planneddate) DESC
" with ParamValues: 0=8] at /kohadevbox/koha/C4/Serials.pm line 688.
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
508a5addf1
commit
5e5c47ea30
|
|
@ -660,7 +660,7 @@ sub GetSerials {
|
|||
publisheddatetext, planneddate,notes, routingnotes
|
||||
FROM serial
|
||||
WHERE subscriptionid = ? AND status NOT IN ( $statuses )
|
||||
ORDER BY IF(publisheddate<>'0000-00-00',publisheddate,planneddate) DESC";
|
||||
ORDER BY IF(publisheddate IS NULL,planneddate,publisheddate) DESC";
|
||||
my $sth = $dbh->prepare($query);
|
||||
$sth->execute($subscriptionid);
|
||||
|
||||
|
|
@ -682,7 +682,7 @@ sub GetSerials {
|
|||
FROM serial
|
||||
WHERE subscriptionid = ?
|
||||
AND status IN ( $statuses )
|
||||
ORDER BY IF(publisheddate<>'0000-00-00',publisheddate,planneddate) DESC
|
||||
ORDER BY IF(publisheddate IS NULL,planneddate,publisheddate) DESC
|
||||
";
|
||||
$sth = $dbh->prepare($query);
|
||||
$sth->execute($subscriptionid);
|
||||
|
|
|
|||
Loading…
Reference in New Issue