Skip to content
Snippets Groups Projects
Commit 0a943213 authored by efalcy's avatar efalcy
Browse files

hotline#100763 : catch error when SOAP fails on getting loans

parent 24754b7c
Branches
Tags
No related merge requests found
Pipeline #8738 passed with stage
in 44 minutes and 33 seconds
- ticket #100763 : probleme compte lecteur SIGB Opsys
\ No newline at end of file
......@@ -192,11 +192,15 @@ class Class_WebService_SIGB_Opsys_Service extends Class_WebService_SIGB_Abstract
$prets = $liste_prets_result->getEntites('Class_WebService_SIGB_Emprunt');
// prets en retard
try {
$liste_prets_retard = $this->search_client->EmprListerEntite(
EmprListerEntite::prets_en_retard($this->guid));
$prets_retard = $liste_prets_retard->getEntites('Class_WebService_SIGB_Emprunt');
foreach($prets_retard as $retard)
$retard->setEnRetard(true);
} catch (SoapFault $e) {
$prets_retard = [];
}
return array_merge($prets, $prets_retard);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment