From 581d75887653364d1af982b80ffdf298661f0386 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 3 Dec 2008 13:45:48 +0000 Subject: [PATCH] Reenabled short cuts in fai management git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13148 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/fai/admin/fai/class_faiManagement.inc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc index d209b1d6d..95a66d38b 100644 --- a/gosa-plugins/fai/admin/fai/class_faiManagement.inc +++ b/gosa-plugins/fai/admin/fai/class_faiManagement.inc @@ -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){ -- 2.30.2