summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: e8c1c13)
raw | patch | inline | side by side (parent: e8c1c13)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 5 Jan 2010 17:10:10 +0000 (17:10 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Tue, 5 Jan 2010 17:10:10 +0000 (17:10 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15067 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc
index 3f1f8e433ffe0674c9427e8a34bfcbcbbb60ed9f..677ba0ea383c9d7b50965ef25a84695a85a9b759 100644 (file)
{
$this->config = $config;
$this->ui = $ui;
-
$this->storagePoints = array(
get_ou('faiPartitionRDN'),
get_ou('faiPackageRDN'),
get_ou('faiVariableRDN'),
get_ou('faiHookRDN'),
get_ou('faiProfileRDN'),get_ou('faiTemplateRDN'));
-
+
// Build filter
-# if (session::global_is_set(get_class($this)."_filter")){
- # $filter= session::global_get(get_class($this)."_filter");
- # } else {
+ if (session::global_is_set(get_class($this)."_filter")){
+ $filter= session::global_get(get_class($this)."_filter");
+ } else {
$filter = new filter(get_template_path("fai-filter.xml", true));
$filter->setObjectStorage($this->storagePoints);
- # }
+ }
$this->setFilter($filter);
// Build headpage
$action = management::detectPostActions();
if(isset($_POST['faiGroupHandle_cancel'])) $action['action'] = "cancel";
if(isset($_POST['faiGroupHandle_apply'])) $action['action'] = "editByGroup";
+
+ foreach($_POST as $name => $value){
+ if(preg_match("/^edit_([0-9]*)_([a-z]*)_(x|y)/i", $name)){
+ $id = preg_replace("/^edit_([0-9]*)_([a-z]*)_(x|y)/i","\\1", $name);
+ $tab = preg_replace("/^edit_([0-9]*)_([a-z]*)_(x|y)/i","\\2", $name);
+ $headpage = $this->getHeadpage();
+ if(isset($headpage->entries[$id]['GROUPS'][$tab])){
+ $data =$headpage->entries[$id]['GROUPS'][$tab];
+ $type = $this->get_type($data);
+ management::editEntry('editEntry',array($data['dn']),array(),$type[0],$type[2],$type[1]);
+ }
+ break;
+ }
+ }
return($action);
}