Code

Updated ACL listing
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 6 Apr 2010 12:43:24 +0000 (12:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 6 Apr 2010 12:43:24 +0000 (12:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@17482 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/class_acl.inc

index ebe5da1b437fda4168014132215d74b35036cd92..34a9fc3445613bf7eadc9fcac8a23290046ee3d7 100644 (file)
@@ -298,14 +298,12 @@ class acl extends plugin
     // Get listing actions. Delete or Edit.
     $this->list->save_object();
     $lAction = $this->list->getAction();
-    if($lAction['action'] == "reorder" || $lAction['action'] == "delete"){
-        $this->gosaAclEntry = $this->list->getMaintainedData();
-    }
+    $this->gosaAclEntry = $this->list->getMaintainedData();
 
     /* Act on HTML post and gets here.
      */
     if($lAction['action'] == "edit"){
-        $this->currentIndex = $lAction['targets'][0];
+        $this->currentIndex = $this->list->getKey($lAction['targets'][0]);
         $this->dialogState= 'create';
         $firstedit= TRUE;
         $this->dialog= TRUE;
@@ -504,7 +502,7 @@ class acl extends plugin
     }
 
     if ($this->dialogState == 'create'){
-      /* Draw list */
+
       $aclList= new divSelectBox("aclList");
       $aclList->SetHeight(150);
 
@@ -554,6 +552,7 @@ class acl extends plugin
       }
 
       $smarty->assign("aclList", $aclList->DrawList());
+    
       $smarty->assign("aclType", $this->aclType);
       $smarty->assign("aclFilter", $this->aclFilter);
       $smarty->assign("aclTypes", $this->aclTypes);