From: hickert Date: Wed, 12 Dec 2007 14:50:34 +0000 (+0000) Subject: Added primaryGroup to multi edit posix X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=370fa5e36347fa26e305a7d8737d8e1cf0452bb5;p=gosa.git Added primaryGroup to multi edit posix git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8109 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_multi_plug.inc b/gosa-core/include/class_multi_plug.inc index f9a02ba3e..9ab38e344 100644 --- a/gosa-core/include/class_multi_plug.inc +++ b/gosa-core/include/class_multi_plug.inc @@ -254,7 +254,6 @@ class multi_plug */ public function check() { - $this->populate_values(); $messages = $this->o_tab->check(); return($messages); } diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc index e2430559e..efcef2298 100644 --- a/gosa-core/plugins/personal/posix/class_posixAccount.inc +++ b/gosa-core/plugins/personal/posix/class_posixAccount.inc @@ -1420,6 +1420,10 @@ class posixAccount extends plugin $ret = plugin::get_multi_edit_values(); $ret['groupMembership'] = $this->groupMembership; $ret['groupMembership_some']= $this->groupMembership_some; + + if(in_array("primaryGroup",$this->multi_boxes)){ + $ret['primaryGroup'] = $this->primaryGroup; + } return($ret); } @@ -1491,6 +1495,8 @@ class posixAccount extends plugin } } $this->groupMembership_some = $groups_some; + + $this->primaryGroup = $this->gidNumber; }