Code

Apply fix for #3020
[gosa.git] / trunk / gosa-plugins / goto / admin / ogroups / goto / class_termgroup.inc
index 272b1cbc5840025ce386a8c3b55fee4f42fa7e07..53e23ec4e152dafb7e3763f53ec51ffe4e2ae666 100644 (file)
@@ -65,7 +65,7 @@ class termgroup extends plugin
     if(isset($this->attrs['member'])){
       for ($i= 0; $i<$this->attrs['member']['count']; $i++){
         $member= $this->attrs['member'][$i];
-        array_push($this->member_dn, $member);
+        array_push($this->member_dn, @LDAP::convert($member));
         $ldap->cat($member, array('objectClass', 'macAddress', 'cn'));
         if ($ldap->success()){
           $attrs = $ldap->fetch();
@@ -188,7 +188,7 @@ class termgroup extends plugin
 
     /* Handle the inherit to members button */
     if (isset($_POST['inheritToMembers'])) {
-      $this->inherit_confirmation = new msg_dialog(_("Pass on attributes to all members"),  _("This action will overwrite all attributes of the group members with the values specified in this object group. Do you want to proceed?"),CONFIRM_DIALOG);
+      $this->inherit_confirmation = new msg_dialog(_("Pass on all attributes to group members"),  _("This action will overwrite all attributes of the group members with the values specified in this object group. Do you want to proceed?"),CONFIRM_DIALOG);
     }
  
     if (is_object($this->inherit_confirmation) && ($this->inherit_confirmation->is_confirmed())) {
@@ -402,7 +402,7 @@ class termgroup extends plugin
   function pass_attributes_to_members()
   {
     foreach ($this->member_dn as $dn) {
-      $member_obj = new worktabs($this->config, $this->config->data['TABS']['WORKTABS'], $dn, 'workstation/workgeneric');
+      $member_obj = new worktabs($this->config, $this->config->data['TABS']['WORKTABS'], $dn, 'workstation');
       $member_obj->by_object['workgeneric']->set_everything_to_inherited();
       $member_obj->save();
     }