From c14b7dfd73190bd03972c537aff763480fe26722 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 28 Aug 2008 12:54:05 +0000 Subject: [PATCH] Renanmed opsi function git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12298 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../fai/admin/fai/class_faiManagement.inc | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc index 84a47931c..a33e346b5 100644 --- a/gosa-plugins/fai/admin/fai/class_faiManagement.inc +++ b/gosa-plugins/fai/admin/fai/class_faiManagement.inc @@ -269,22 +269,23 @@ 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 opsi_product_config($this->config, $name,$cfg); + $this->dialog = new opsiProductConfig($this->config, $name,$cfg); } - if($this->dialog instanceof opsi_product_config && isset($_POST['cancel_properties'])){ + if($this->dialog instanceof opsiProductConfig && isset($_POST['cancel_properties'])){ $this->dialog = NULL; } - if($this->dialog instanceof opsi_product_config && isset($_POST['save_properties'])){ + if($this->dialog instanceof opsiProductConfig && isset($_POST['save_properties'])){ $this->dialog->save_object(); $name = $this->dialog->get_product(); $cfg = $this->dialog->get_cfg(); - for($i = 0 ; $i < 10 ; $i ++){ - $cfg["name$i"] = microtime(1); - } $this->opsi->set_product_properties($name,$cfg); - $this->dialog = NULL; + if($this->opsi->is_error()){ + msg_dialog::display(_("Error"),msgPool::siError($this->opsi->get_error()),ERROR_DIALOG); + }else{ + $this->dialog = NULL; + } } - if($this->dialog instanceof opsi_product_config){ + if($this->dialog instanceof opsiProductConfig){ $this->dialog->save_object(); return($this->dialog->execute()); } -- 2.30.2