[Koha-bugs] [Bug 17865] New: If a subscription has no history end date, it shows as expired today in OPAC
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Mon Jan 9 10:26:58 CET 2017
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: koha-bugs at lists.koha-community.org
Reporter: katrin.fischer at bsz-bw.de
QA Contact: testopia at bugs.koha-community.org
CC: colin.campbell at ptfs-europe.com
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.
More information about the Koha-bugs
mailing list