Code

Enabled edit
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 5 Jan 2010 16:09:38 +0000 (16:09 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 5 Jan 2010 16:09:38 +0000 (16:09 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15063 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/fai/admin/fai/class_faiManagement.inc

index af9eb1fcf1d31242e4cfc4c5fe1909f900465476..fb7d3091dd8baab2d76d59a738b1aa232bed5aaa 100644 (file)
@@ -74,15 +74,12 @@ class faiManagement extends management
   }
 
 
-  
   function editEntry($action="",$target=array(),$all=array(), $altTabClass ="", $altTabType = "", $altAclCategory="")
   {
     $headpage = $this->getHeadpage();
     if(count($target) == 1){
       $entry = $headpage->getEntry($target[0]);
       if($entry){
-        echo $target[0];
-        print_a($entry);
         if(count($entry['GROUPS']) == 1){
           $data = array_pop($entry['GROUPS']);
           $type = $this->get_type($data);
@@ -94,20 +91,19 @@ class faiManagement extends management
     }
   }
 
+
   function editByGroup()
   {
     if($this->dialogObject instanceOf faiGroupHandle && $this->dialogObject->get_mode() == "edit"){
+      $this->dialogObject->save_object();
       $entry = $this->dialogObject->get_selected();
-      $this->editEntryByType(key($entry), array_pop($entry));
+      $this->closeDialogs();
+      $data = array_pop($entry);
+      $type = $this->get_type($data);
+      management::editEntry('editEntry',array($data['dn']),array(),$type[0],$type[2],$type[1]);
     }
   }
 
-  function editEntryByType($type, $data)
-  {
-    $this->closeDialogs();
-    $type = $this->get_type($data);
-    management::editEntry('editEntry',array($data['dn']),array(),$type[0],$type[2],$type[1]);
-  }
   
   function detectPostActions()
   {
@@ -155,7 +151,6 @@ class faiManagement extends management
 
       $list = array_merge($list,$this->getReleaseList($release['dn'],$prefix."&nbsp; "));
     }
-    print_a($_POST);
     return($list);
   }