From 31c5506c3dcc13a8598819b5139ca4c4410a65b9 Mon Sep 17 00:00:00 2001 From: Fridolyn SOMERS Date: Thu, 19 Jul 2012 11:37:16 +0200 Subject: [PATCH] Bug 8275: xml parsing error when the webservice GetPatronInfo/show_loans is called Signed-off-by: Chris Cormack Signed-off-by: Paul Poulain Signed-off-by: Chris Cormack --- C4/ILSDI/Services.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/C4/ILSDI/Services.pm b/C4/ILSDI/Services.pm index 4eed9361ed..12f869fcd7 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; } -- 2.39.5