浏览代码

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
   /**