Skip to content
Snippets Groups Projects
Commit 9b418a53 authored by efalcy's avatar efalcy
Browse files

hotline #50880 : basket restriction to id_int_bib

parent 1889bc88
Branches
Tags
3 merge requests!2080Sandbox detach zf from storm,!1943Hotline master,!1934hotline $50880 : add int_bib as control on integration basket
......@@ -91,7 +91,7 @@ class Class_Cosmogramme_Integration_PhasePanier extends Class_Cosmogramme_Integr
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]);
return null;
}
......
......@@ -127,6 +127,7 @@ abstract class PhasePanierKohaTestCase extends PhasePanierTestCase {
'clef_alpha' => 'CASTAFIORE',
'exemplaires' => [$this->fixture('Class_Exemplaire',
['id' => 231,
'id_int_bib' => 999,
'id_origine' => 39925])]]);
$this->fixture('Class_Notice',
......@@ -134,6 +135,7 @@ abstract class PhasePanierKohaTestCase extends PhasePanierTestCase {
'clef_alpha' => 'TIBET',
'exemplaires' => [$this->fixture('Class_Exemplaire',
['id' => 4511,
'id_int_bib' => 999,
'id_origine' => 72490])]]);
$this->fixture('Class_Notice',
......@@ -141,6 +143,7 @@ abstract class PhasePanierKohaTestCase extends PhasePanierTestCase {
'clef_alpha' => 'LUNE',
'exemplaires' => [$this->fixture('Class_Exemplaire',
['id' => 241,
'id_int_bib' => 999,
'id_origine' => 58265])]]);
}
......@@ -425,6 +428,7 @@ class PhasePanierNanookTest extends PhasePanierTestCase {
'clef_alpha' => 'CASTAFIORE',
'exemplaires' => [$this->fixture('Class_Exemplaire',
['id' => 231,
'id_int_bib' => 999,
'id_origine' => 45633])]]);
}
......
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