Bug 3812 - Illegal Date 'iso' does not match 'iso' format (Acquisitions)
Summary: Illegal Date 'iso' does not match 'iso' format (Acquisitions)
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: Acquisitions (show other bugs)
Version: rel_2_2
Hardware: All All
: PATCH-Sent (DO NOT USE) trivial (vote)
Assignee: Henri-Damien LAURENT
QA Contact: Bugs List
URL:
Keywords:
: 4836 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-26 01:19 UTC by Marcel de Rooy
Modified: 2012-10-25 23:09 UTC (History)
3 users (show)

See Also:
Change sponsored?: ---
Patch complexity: ---
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Cormack 2010-05-21 01:15:17 UTC


---- Reported by m.de.rooy@rijksmuseum.nl 2009-11-26 13:19:10 ----

From koha error log: [Mon Nov 23 10:36:57 2009] [error] [client 192.87.126.61] [Mon Nov 23 10:36:57 2009] orderreceive.pl: Illegal Date 'iso' does not match 'iso' format: yyyy-mm-dd at /usr/share/koha/intranet/cgi-bin/acqui/orderreceive.pl line 80. 

This happens when datareceived parameter does not exist or is empty. In that case the second parameter iso from the line below becomes the first parameter.
my $datereceived = C4::Dates->new($input->param('datereceived'),'iso') || C4::Dates->new();

Solution: force the first parameter to be present in the call: 
my $datereceived = C4::Dates->new($input->param('datereceived')||'','iso') || C4::Dates->new();



---- Additional Comments From m.de.rooy@rijksmuseum.nl 2010-05-17 10:12:12 ----

(In reply to comment #0)

Additional correction in orderreceive.pl, line 184: add datereceived via $line to loop array.




--- Bug imported by chris@bigballofwax.co.nz 2010-05-21 01:15 UTC  ---

This bug was previously known as _bug_ 3812 at http://bugs.koha.org/cgi-bin/bugzilla3/show_bug.cgi?id=3812

Actual time not defined. Setting to 0.0
Setting qa contact to the default for this product.
   This bug either had no qa contact or an invalid one.

Comment 1 Marcel de Rooy 2010-05-31 06:49:03 UTC
*** Bug 4836 has been marked as a duplicate of this bug. ***
Comment 2 Galen Charlton 2010-11-13 17:09:45 UTC
Reopening for HEAD.
Comment 3 Galen Charlton 2010-11-13 17:15:16 UTC
Closing again - bug was fixed via slightly different code in HEAD.  Sorry for the noise.