소스 검색

bug fix: Ajout d'un element Si pas de groupe précisé, l'attribut group doit être a null.

bastien 13 년 전
부모
커밋
ff25627e0c
1개의 변경된 파일4개의 추가작업 그리고 0개의 파일을 삭제
  1. 4 0
      src/Muzich/CoreBundle/ElementFactory/ElementManager.php

+ 4 - 0
src/Muzich/CoreBundle/ElementFactory/ElementManager.php 파일 보기

@@ -86,6 +86,10 @@ class ElementManager
86 86
       $group = $this->em->getRepository('MuzichCoreBundle:Group')->findOneById($this->element->getGroup());
87 87
       $this->element->setGroup($group);
88 88
     }
89
+    else
90
+    {
91
+      $this->element->setGroup(null);
92
+    }
89 93
   }
90 94
   
91 95
   /**