From 204bb806011660d18baeb41b297bd4e8e5a8edc6 Mon Sep 17 00:00:00 2001 From: Luke Honiss Date: Tue, 17 Jan 2017 02:27:55 +0000 Subject: [PATCH] Bug 17865 'If a subscription has no history end date, it shows as expired today in OPAC' fixed --TEST PLAN-- 1. Find a record in the OPAC with a serial subscription 2. Check more details under subscription tab 3. The expiration date should be incorrect 4. Apply patch 5. Reload and now the expiration date should now be correct --- C4/Serials.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/C4/Serials.pm b/C4/Serials.pm index 543b1dc..e5b2d93 100644 --- a/C4/Serials.pm +++ b/C4/Serials.pm @@ -450,7 +450,7 @@ sub GetSubscriptionsFromBiblionumber { $subs->{ "numberpattern" . $subs->{numberpattern} } = 1; $subs->{ "status" . $subs->{'status'} } = 1; - if ( $subs->{enddate} eq '0000-00-00' ) { + if (not defined $subs->{enddate} ) { $subs->{enddate} = ''; } else { $subs->{enddate} = output_pref( { dt => dt_from_string( $subs->{enddate}), dateonly => 1 } ); -- 2.1.4