[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
Tue May 19 20:07:20 CEST 2015


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

--- Comment #27 from M. Tompsett <mtompset at hotmail.com> ---
(In reply to Katrin Fischer from comment #25)
> If you or Rolando can tell me how to alter the data in order to make the
> problem appear that would work for me for now.

I have looked further, and believe the only way to trigger this problem is bad
data.

However, as I just posted, there are validation failures at the template level
which end up calling these functions in exploding ways.

GetNextSeq and GetNextDate in C4::Serials both call GetFictiveIssueNumber, and
it is the second parameter as 0000-00-00 which causes the explosion.

This is easy to trigger as tests apart from the interface.

However, some validation on the template pages actually prevents such
explosions. Though, as demonstrated in comment #26, there needs to be an
improvement in validations done.

Would adding those validations to solve comment #26 be sufficient to pass all
of this?

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


More information about the Koha-bugs mailing list