https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=17865
Bug ID: 17865
Summary: If a subscription has no history end date, it shows as
expired today in OPAC
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: Serials
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
CC: [email protected]
If there is no subscription histenddate (NULL) in subscriptionhistory, the
subscription will show as expired today in the OPAC.
I think this happens becasue of this bit in GetSubscriptionsFromBiblionumber:
451 if ( $subs->{enddate} eq '0000-00-00' ) {
452 $subs->{enddate} = '';
453 } else {
454 $subs->{enddate} = output_pref( { dt => dt_from_string(
$subs->{enddate}), dateonly => 1 } );
455 }
I am not sure why this appears to return the current date, but it seems a good
candidate to start the search.
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/