Code

Added primaryGroup to multi edit posix
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Dec 2007 14:50:34 +0000 (14:50 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 12 Dec 2007 14:50:34 +0000 (14:50 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8109 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_multi_plug.inc
gosa-core/plugins/personal/posix/class_posixAccount.inc

index f9a02ba3e3a02e4be8c6f0393cb068f2d65bd516..9ab38e34467ee9c95d9663903ad869ee25a482bd 100644 (file)
@@ -254,7 +254,6 @@ class multi_plug
    */
   public function check()
   {
-    $this->populate_values();
     $messages = $this->o_tab->check();
     return($messages);
   }
index e2430559e272bec00a20d350cf028c5ca544321f..efcef229846210e5b0e85783c110a6c9efea0a1e 100644 (file)
@@ -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;
   }