]> git.koha-community.org Git - koha.git/commit
Bug 13011: 0000-00-00 should not be considered as a valid date
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 30 Sep 2014 09:36:39 +0000 (11:36 +0200)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sat, 1 Nov 2014 12:19:07 +0000 (09:19 -0300)
commitc5a6a4f18a2c4eb2cb47bc302e539d3b05fcf9b1
treeef5729c226c59ed1c8e8cce59c1c20450151883f
parenta4a2159aad6d7276fc7efb9abb24830f7f473102
Bug 13011: 0000-00-00 should not be considered as a valid date

When parsing the letter content, the 0000-00-00 should not be replaced,
it's not a valid date.

Test plan:
  prove t/db_dependent/Suggestions.t
should not return the following error:
0000-00-00 seems to be a date but an error occurs on generating it (The
'month' parameter ("0") to DateTime::new did not pass the 'an integer
between 1 and 12' callback

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Adds another check for 0000-00-00.
Passes tests and QA script.

Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
C4/Letters.pm