From: hickert Date: Mon, 27 Sep 2010 09:37:37 +0000 (+0000) Subject: Save posted values X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=49364365664f0e9c217474b3b40c170b572ecdb3;p=gosa.git Save posted values git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19794 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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'];