Skip to content
Snippets Groups Projects
Commit d2eb66da authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

rel #13321 : limit reading holding branch to loan elements

parent 73831718
Branches
Tags
6 merge requests!258Dev/13872 Orphee Allow Hold Available Items,!103Master,!100Master,!93Master,!92Hotline 6.42,!90Hotline#13321 Read Loan Library From Koha Ilsdi
......@@ -58,7 +58,8 @@ class Class_WebService_SIGB_Koha_PatronInfoReader extends Class_WebService_SIGB_
public function endHoldingbranch($data) {
$data = trim($data);
if (!$data || !($site = Class_CodifAnnexe::findFirstBy(['code' => $data])))
if (!$this->_currentLoan || !$data
|| !($site = Class_CodifAnnexe::findFirstBy(['code' => $data])))
return;
$this->_current_operation->getExemplaire()->setBibliotheque($site->getLibelle());
......
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