Bugzilla – Attachment 10713 Details for
Bug 8391
Cannot view reading record through staff client
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8391 - Cannot view reading record through staff client
Bug-8391---Cannot-view-reading-record-through-staf.patch (text/plain), 1.44 KB, created by
Kyle M Hall
on 2012-07-09 12:42:01 UTC
(
hide
)
Description:
Bug 8391 - Cannot view reading record through staff client
Filename:
MIME Type:
Creator:
Kyle M Hall
Created:
2012-07-09 12:42:01 UTC
Size:
1.44 KB
patch
obsolete
>From 74cb9d4c11819aa0cccffa03b29a7cf8520f0c9a Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Mon, 9 Jul 2012 08:38:59 -0400 >Subject: [PATCH] Bug 8391 - Cannot view reading record through staff client > >This bug reveals itself when attempting to view the reading record >of a borrower who currently has items checked out. Readingrec.pl >attempts to format the returndate field for both old and current >issues, even though current issues have no returndate. This is what >is causing the error. > >Resolved by adding a conditional to check for a valid date before >formatting said date. >--- > members/readingrec.pl | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > >diff --git a/members/readingrec.pl b/members/readingrec.pl >index d95cc8f..8292f0d 100755 >--- a/members/readingrec.pl >+++ b/members/readingrec.pl >@@ -77,7 +77,7 @@ foreach my $issue (@{$issues}){ > $line{author} = $issue->{'author'}; > $line{classification} = $issue->{'classification'} || $issue->{'itemcallnumber'}; > $line{date_due} = format_sqldatetime($issue->{date_due}); >- $line{returndate} = format_sqldatetime($issue->{returndate}); >+ $line{returndate} = format_sqldatetime($issue->{returndate}) unless ( $issue->{returndate} eq '0000-00-00 00:00:00' ); > $line{issuedate} = format_sqldatetime($issue->{issuedate}); > $line{issuingbranch} = GetBranchName($issue->{'branchcode'}); > $line{renewals} = $issue->{'renewals'}; >-- >1.7.2.5
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 8391
:
10713
|
11155
|
11203