X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=gosa-core%2Fplugins%2Fadmin%2Fgroups%2Fclass_group.inc;h=d63a6965b82575e11f2bde1df12a5e949dd88e89;hb=49e32fe883c90fe280ba6e4de7730e61b5704079;hp=456eb4c25761d517864518b9ba2d4e90a09bf89a;hpb=2274d64c94b69218e890419926ba10548cc2d098;p=gosa.git diff --git a/gosa-core/plugins/admin/groups/class_group.inc b/gosa-core/plugins/admin/groups/class_group.inc index 456eb4c25..d63a6965b 100644 --- a/gosa-core/plugins/admin/groups/class_group.inc +++ b/gosa-core/plugins/admin/groups/class_group.inc @@ -737,17 +737,6 @@ class group extends plugin /* Save data to object */ function save_object() { - /* Refresh base */ - if ($this->acl_is_moveable($this->base)){ - if (!$this->baseSelector->update()) { - msg_dialog::display(_("Error"), msgPool::permMove(), ERROR_DIALOG); - } - if ($this->base != $this->baseSelector->getBase()) { - $this->base= $this->baseSelector->getBase(); - $this->is_modified= TRUE; - } - } - /* Save additional values for possible next step */ if (isset($_POST['groupedit'])){ @@ -758,6 +747,17 @@ class group extends plugin plugin::save_object(); $this->base = $base_tmp; + /* Refresh base */ + if ($this->acl_is_moveable($this->base)){ + if (!$this->baseSelector->update()) { + msg_dialog::display(_("Error"), msgPool::permMove(), ERROR_DIALOG); + } + if ($this->base != $this->baseSelector->getBase()) { + $this->base= $this->baseSelector->getBase(); + $this->is_modified= TRUE; + } + } + $this->force_gid= 0; /* Only reset sambagroup flag if we are able to write this flag */