[Koha-patches] [PATCH] Bug 8275: xml parsing error when the webservice GetPatronInfo/show_loans is called
Fridolyn SOMERS
fridolyn.somers at biblibre.com
Thu Jul 19 11:45:56 CEST 2012
---
C4/ILSDI/Services.pm | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm
index 4eed936..12f869f 100644
--- a/C4/ILSDI/Services.pm
+++ b/C4/ILSDI/Services.pm
@@ -419,6 +419,10 @@ sub GetPatronInfo {
# Issues management
if ( $cgi->param('show_loans') eq "1" ) {
my $issues = GetPendingIssues($borrowernumber);
+ foreach my $issue ( @$issues ){
+ $issue->{'issuedate'} = $issue->{'issuedate'}->strftime('%Y-%m-%d %H:%M');
+ $issue->{'date_due'} = $issue->{'date_due'}->strftime('%Y-%m-%d %H:%M');
+ }
$borrower->{'loans'}->{'loan'} = $issues;
}
--
1.7.9.5
More information about the Koha-patches
mailing list