[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 13:52:33 CEST 2015
http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=14036
--- Comment #2 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
@@ +2246,5 @@
> my $expirationdate = GetExpirationDate($subscriptionid);
> my ($res) = $dbh->selectrow_array('select max(planneddate) from serial where subscriptionid = ?', undef, $subscriptionid);
> my $nextdate = GetNextDate($subscription, $res);
> +
> + return unless ($nextdate and $expirationdate);
See also bug 13109.
--
You are receiving this mail because:
You are watching all bug changes.
More information about the Koha-bugs
mailing list