Browse Source

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

bastien 13 years ago
parent
commit
ff25627e0c
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/Muzich/CoreBundle/ElementFactory/ElementManager.php

+ 4 - 0
src/Muzich/CoreBundle/ElementFactory/ElementManager.php View File

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