[Koha-bugs] [Bug 14036] "Date::Calc::Add_Delta_YM(): not a valid date" error when accessing subscription detail

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Thu Apr 23 21:12:28 CEST 2015


http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14036

M. Tompsett <mtompset at hotmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REOPENED                    |ASSIGNED

--- Comment #6 from M. Tompsett <mtompset at hotmail.com> ---
(In reply to Rolando Isidoro from comment #5)
> As for the patch I submitted, both validation are required, the check_date
> one you mentioned as not being needed is mandatory to solve the problem as
> the error occurs in the GetNextDate function.
> 
> I'm reverting the status to 'REOPENED', can you please take a second look at
> it?

GetNextDate receives a parameter $publisheddate (which it may or may not be).
As far as I can tell, it is either:
NULL, 0000-00-00 (MySQL badness), or a valid MySQL date (YYYY-MM-DD).
I have confirmed that 0000-00-00 triggers an error. I'll be attaching tests
that were missing.

Please remove the first part of this patch, as 13109 resolves that issue.
Perhaps add a dependency?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list