Bug 8275: xml parsing error when the webservice GetPatronInfo/show_loans is called

Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
Signed-off-by: Paul Poulain <paul.poulain@biblibre.com>
This commit is contained in:
Fridolyn SOMERS 2012-07-19 11:37:16 +02:00 committed by Paul Poulain
parent b08cf71f53
commit 6f09397a21

View file

@ -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;
}