From: hickert Date: Thu, 28 Aug 2008 13:13:33 +0000 (+0000) Subject: Updated fai/opsi implementation X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8853c179d83c509991fe9c5ff7c4b0b9ecd5fc8d;p=gosa.git Updated fai/opsi implementation git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12302 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc index a33e346b5..8345f9028 100644 --- a/gosa-plugins/fai/admin/fai/class_faiManagement.inc +++ b/gosa-plugins/fai/admin/fai/class_faiManagement.inc @@ -139,8 +139,6 @@ class faiManagement extends plugin "/^copy/" => "copy", "/^remove_multiple_fai_objects/" => "del_multiple"); - print_a($_POST); - foreach($_POST as $name => $value){ foreach($posts as $reg => $act ){ if(preg_match($reg,$name)){ @@ -269,12 +267,12 @@ class faiManagement extends plugin if($s_action == "opsi_edit"){ $name = $this->objects[$s_entry]['cn']; $cfg = $this->opsi->get_product_properties($name); - $this->dialog = new opsiProductConfig($this->config, $name,$cfg); + $this->dialog = new tabs_opsiProdConfig($this->config, $this->config->data['TABS']['OPSIPRODCONFIG'], $cfg); } - if($this->dialog instanceof opsiProductConfig && isset($_POST['cancel_properties'])){ + if($this->dialog instanceof tabs_opsiProdConfig && isset($_POST['cancel_properties'])){ $this->dialog = NULL; } - if($this->dialog instanceof opsiProductConfig && isset($_POST['save_properties'])){ + if($this->dialog instanceof tabs_opsiProdConfig && isset($_POST['save_properties'])){ $this->dialog->save_object(); $name = $this->dialog->get_product(); $cfg = $this->dialog->get_cfg(); @@ -285,7 +283,7 @@ class faiManagement extends plugin $this->dialog = NULL; } } - if($this->dialog instanceof opsiProductConfig){ + if($this->dialog instanceof tabs_opsiProdConfig){ $this->dialog->save_object(); return($this->dialog->execute()); }