Code

Fixed /var/www/gosa/plugins/admin/groups/class_groupAcl.inc (Line 173) Undefined...
[gosa.git] / plugins / admin / ogroups / class_mailogroup.inc
index d4180f603afc32321c4bd14514c4f830d45b3a72..b99206146a930cede0354d27a5708ad654a3ebd4 100644 (file)
@@ -26,6 +26,9 @@ class mailogroup extends plugin
 
   function execute()
   {
+       /* Call parent execute */
+       plugin::execute();
+
     /* Do we need to flip is_account state? */
     if (isset($_POST['modify_state'])){
       $this->is_account= !$this->is_account;
@@ -88,7 +91,9 @@ class mailogroup extends plugin
 
     /* Save data to LDAP */
     $ldap->cd($this->dn);
-    $ldap->modify($this->attrs);
+    $this->cleanup();
+$ldap->modify ($this->attrs); 
+
     show_ldap_error($ldap->get_error());
 
     /* Optionally execute a command after we're done */
@@ -119,7 +124,9 @@ class mailogroup extends plugin
     @DEBUG (DEBUG_LDAP, __LINE__, __FUNCTION__, __FILE__,
         $this->attributes, "Save");
     $ldap->cd($this->dn);
-    $ldap->modify($this->attrs);
+    $this->cleanup();
+$ldap->modify ($this->attrs); 
+
     show_ldap_error($ldap->get_error());
   }