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:
parent
b08cf71f53
commit
6f09397a21
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue