Code

Reenabled short cuts in fai management
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 3 Dec 2008 13:45:48 +0000 (13:45 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 3 Dec 2008 13:45:48 +0000 (13:45 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13148 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index d209b1d6d447842194cbf9502bdbf3662c93c2c5..95a66d38b9bfe7bccf0ecc1861ef70d850129b79 100644 (file)
@@ -153,6 +153,11 @@ class faiManagement extends plugin
           break;
         }
       }
+      if(preg_match("/^edit_[0-9]*_.*$/",$name)){
+        $i_entryID  = preg_replace("/^edit_([0-9]*)_.*$/i","\\1",$name);
+        $s_entryType= preg_replace("/^edit_[0-9]*_([^_]*)_.*$/i","\\1",$name);
+        $s_action = "edit";
+      }
     }
 
     if(isset($_GET['act']) && $_GET['act'] == "edit" && isset($_GET['id'])){
@@ -415,7 +420,7 @@ class faiManagement extends plugin
       Edit entry 
      ****************/
 
-               if($this->dialog instanceOf faiGroupHandle && $this->dialog->get_mode() == "edit"){
+               if($s_action == "edit" || $this->dialog instanceOf faiGroupHandle && $this->dialog->get_mode() == "edit"){
 
       $entry = array();
       if($this->dialog instanceOf faiGroupHandle){