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

Correction tests

parent 754b3dd9
Branches
Tags
No related merge requests found
......@@ -935,8 +935,10 @@ class Class_Catalogue extends Storm_Model_Abstract {
public function saveThesaurus(){
if (!$thesaurus = $this->saveThesauriParents()) return;
$this->deleteThesaurusInFacette($thesaurus->getIdThesaurus());
if ($thesaurus=Class_CodifThesaurus::findThesaurusForCatalogue($this->getId()))
$this->deleteThesaurusInFacette($thesaurus->getIdThesaurus());
else
if (!$thesaurus = $this->saveThesauriParents()) return;
if($this->hasDomaineParent()){
$parent=$this->getParent();
$thesaurus_parent = $parent->saveThesauriParents();
......
......@@ -100,6 +100,7 @@ abstract class AdminCatalogueControllerTestCase extends AbstractControllerTestCa
->answers([$this->_catalogue_adultes, $histoire])
->whenCalled('save')->answers(true)
->whenCalled('deleteThesaurusInFacette')->answers(true)
->whenCalled('delete')->answers(true);
......
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