Bugzilla – Attachment 59050 Details for
Bug 17865
If a subscription has no history end date, it shows as expired today in OPAC
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 17865 'If a subscription has no history end date, it shows as expired today in OPAC' fixed
Bug-17865-If-a-subscription-has-no-history-end-dat.patch (text/plain), 1.12 KB, created by
Luke Honiss
on 2017-01-17 02:38:04 UTC
(
hide
)
Description:
Bug 17865 'If a subscription has no history end date, it shows as expired today in OPAC' fixed
Filename:
MIME Type:
Creator:
Luke Honiss
Created:
2017-01-17 02:38:04 UTC
Size:
1.12 KB
patch
obsolete
>From 204bb806011660d18baeb41b297bd4e8e5a8edc6 Mon Sep 17 00:00:00 2001 >From: Luke Honiss <luke.honiss@gmail.com> >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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 17865
:
59049
|
59050
|
59179
|
59199
|
60430
|
60453