Skip to content
Snippets Groups Projects
Commit 3a134bf7 authored by llaffont's avatar llaffont
Browse files

Aloes: prise en compte du lieu de mise à disposition

parent dbf6db82
Branches
Tags
No related merge requests found
......@@ -57,7 +57,14 @@ class Class_WebService_SIGB_Reservation extends Class_WebService_SIGB_Exemplaire
public function onParseAttributes() {
$this->setRang($this->getAttribute('Rang'));
$this->setEtat($this->getAttribute('Etat'));
if (!$code_annexe = $this->getAttribute('Lieu'))
return;
if ($annexe = Class_CodifAnnexe::getLoader()->findFirstBy(array('code' => $code_annexe)))
$this->setBibliotheque($annexe->getLibelle());
}
/** @codeCoverageIgnore */
public function __toString(){
......
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