Skip to content
Snippets Groups Projects
Commit 1889bc88 authored by efalcy's avatar efalcy
Browse files

hotline #50880 : fix RT

parent 4ca5f275
Branches
Tags
3 merge requests!2080Sandbox detach zf from storm,!1943Hotline master,!1934hotline $50880 : add int_bib as control on integration basket
......@@ -87,9 +87,9 @@ class Class_Cosmogramme_Integration_PhasePanier extends Class_Cosmogramme_Integr
}
protected function findExemplaire($id_notice_sigb, $integration) {
if ($exemplaire = Class_Exemplaire::findFirstBy(['id_origine' => $id_notice_sigb,
'id_int_bib' => $integration->getId()]))
protected function findExemplaire($id_notice_sigb, $id_int_bib) {
if ($id_int_bib && $exemplaire = Class_Exemplaire::findFirstBy(['id_origine' => $id_notice_sigb,
'id_int_bib' => $id_int_bib]))
return $exemplaire;
return Class_Exemplaire::findFirstBy(['id_origine' => $id_notice_sigb]);
}
......@@ -100,7 +100,7 @@ class Class_Cosmogramme_Integration_PhasePanier extends Class_Cosmogramme_Integr
return;
$map = $this->mapRecordColumns($integration, $datas);
if (!$exemplaire = $this->findExemplaire($map['id_notice_sigb'],$integration))
if (!$exemplaire = $this->findExemplaire($map['id_notice_sigb'],$integration->getId()))
return ;
$owners = $this->findPossibleOwnersOfBasketRecord($map);
if ($owners->isEmpty() && $integration->isPergame())
......
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