]> git.koha-community.org Git - koha.git/commit
Bug 11995: restore ability of serialsUpdate.pl to calculate next serial issue dates
authorJonathan Druart <jonathan.druart@biblibre.com>
Mon, 24 Mar 2014 14:25:05 +0000 (15:25 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Wed, 6 Aug 2014 08:00:40 +0000 (10:00 +0200)
commitd4bfad499a01850b002dfb423900cd832e20ab81
tree2780664672445c7a81e2ae7aa14c44c4c218bb9d
parent53b8968e7d196f5a2634a48fcd17fecaf52bc4b2
Bug 11995: restore ability of serialsUpdate.pl to calculate next serial issue dates

Bug 7688 changed the prototype for GetNextDate, but the serialsUpdate.pl
cronjob script had not been updated.  This patch fixes the problem.

Test plan:
Before applying the patch:
1/ Check that the following SQL query returns something:
SELECT serial.*
FROM serial
LEFT JOIN subscription ON (subscription.subscriptionid = serial.subscriptionid)
WHERE serial.status = 1
AND DATE_ADD(planneddate, INTERVAL CAST(graceperiod AS SIGNED) DAY) < NOW()
AND subscription.closed = 0;
2/ Run misc/cronjobs/serialsUpdate.pl -v
   It should die with an error message like this:
   Can't use string ("2011-03-05") as a HASH ref while "strict refs" in use
3/ Apply the patch
4/ Run misc/cronjobs/serialsUpdate.pl -v
   It should exit normally and print messages like this:
   Serial issue with id=XX updated
5/ Run the Koha QA test tools.

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit f71283bad5517757ee6b670c0edb5257d0a1bedc)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
misc/cronjobs/serialsUpdate.pl