[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 14:05:40 CEST 2015


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

--- Comment #3 from M. Tompsett <mtompset at hotmail.com> ---
Comment on attachment 38399
  --> http://bugs.koha-community.org/bugzilla3/attachment.cgi?id=38399
Patch that adds date validation

Review of attachment 38399:
 --> (http://bugs.koha-community.org/bugzilla3/page.cgi?id=splinter.html&bug=14036&attachment=38399)
-----------------------------------------------------------------

::: C4/Serials.pm
@@ +2386,4 @@
>      if ($freqdata->{'unit'}) {
>          my ( $year, $month, $day ) = split /-/, $publisheddate;
>  
> +        return unless check_date($year, $month, $day);

Not necessary, because:
return unless $subscription and $publisheddate;

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


More information about the Koha-bugs mailing list