From 49364365664f0e9c217474b3b40c170b572ecdb3 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 27 Sep 2010 09:37:37 +0000 Subject: [PATCH] Save posted values git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19794 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../admin/systems/goto/Config/class_DeviceConfig.inc | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc b/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc index 61b1209fc..53f917db2 100644 --- a/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc +++ b/gosa-plugins/goto/admin/systems/goto/Config/class_DeviceConfig.inc @@ -146,6 +146,15 @@ class DeviceConfig extends plugin function setCurrentItem($item) { if($this->currentItemName == $item) return; + + // Save eventually changed values + if($this->currentItem){ + foreach($this->TemplateEngine->getWidgets() as $widget){ + $this->currentItem['values'][$widget->getName()] = $widget->getValue(); + } + } + + $this->currentItemName = $item; $this->currentItem = &$this->currentItemValues[$item]; $this->currentItemType = $this->currentItem['type']; -- 2.30.2