From 370fa5e36347fa26e305a7d8737d8e1cf0452bb5 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 12 Dec 2007 14:50:34 +0000 Subject: [PATCH] Added primaryGroup to multi edit posix git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8109 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-core/include/class_multi_plug.inc | 1 - gosa-core/plugins/personal/posix/class_posixAccount.inc | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) 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; } -- 2.30.2