From be54dc6aff7d5ec209d5ac10f0337ed00260b6fd Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 5 May 2009 13:48:48 +0000 Subject: [PATCH] =?utf8?q?Added=20Mr.=20R=C3=B6h=20Patch.=20Allows=20to=20?= =?utf8?q?select=20the=20primary=20Group=20in=20Copy&PAste?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13605 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../plugins/personal/posix/class_posixAccount.inc | 14 ++++++++++++++ gosa-core/plugins/personal/posix/paste_generic.tpl | 8 ++++++++ 2 files changed, 22 insertions(+) diff --git a/gosa-core/plugins/personal/posix/class_posixAccount.inc b/gosa-core/plugins/personal/posix/class_posixAccount.inc index 0b5bd8835..c26f27af6 100644 --- a/gosa-core/plugins/personal/posix/class_posixAccount.inc +++ b/gosa-core/plugins/personal/posix/class_posixAccount.inc @@ -1457,6 +1457,11 @@ class posixAccount extends plugin $this->is_modified= TRUE; } $this->force_ids= $data; + $data= $_POST['primaryGroup']; + if ($this->primaryGroup != $data){ + $this->is_modified= TRUE; + } + $this->primaryGroup= $_POST['primaryGroup']; } } @@ -1510,6 +1515,9 @@ class posixAccount extends plugin /* Assigned informations to smarty */ $smarty = get_smarty(); $smarty->assign("homeDirectory",$this->homeDirectory); + $smarty->assign("secondaryGroups",$this->secondaryGroups); + $smarty->assign("primaryGroup",$this->primaryGroup); + $smarty->assign("uidNumber",$this->uidNumber); $smarty->assign("gidNumber",$this->gidNumber); $smarty->assign("forceMode",$forceMode); @@ -1545,6 +1553,12 @@ class posixAccount extends plugin $this->savedUidNumber = ""; # $this->savedGidNumber = $this->get_next_id("gidNumber", $this->dn); $this->savedGidNumber = ""; + + /* Fill group */ + if(isset($source['gidNumber'][0])){ + $this->primaryGroup= $source['gidNumber'][0]; + } + } diff --git a/gosa-core/plugins/personal/posix/paste_generic.tpl b/gosa-core/plugins/personal/posix/paste_generic.tpl index 4b1461ddb..983c93c2f 100644 --- a/gosa-core/plugins/personal/posix/paste_generic.tpl +++ b/gosa-core/plugins/personal/posix/paste_generic.tpl @@ -13,6 +13,14 @@ + + + +
+ +