From: hickert Date: Tue, 26 Jul 2011 11:21:57 +0000 (+0000) Subject: Updated config item mangement X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=1cc44faa514f12ca967a434a9843b78c06a99327;p=gosa.git Updated config item mangement git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20949 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/goto/admin/systems/goto/Device/class_DeviceConfig.inc b/gosa-plugins/goto/admin/systems/goto/Device/class_DeviceConfig.inc index 43cb84e4f..bafb4f53b 100644 --- a/gosa-plugins/goto/admin/systems/goto/Device/class_DeviceConfig.inc +++ b/gosa-plugins/goto/admin/systems/goto/Device/class_DeviceConfig.inc @@ -258,6 +258,12 @@ class DeviceConfig extends plugin */ function save() { + // If no items are assinged we've to remove the extension. + if(!count($this->usedElements)) { + $this->remove_from_parent(); + return; + } + // Load assignable elements. $rpc = $this->config->getRpcHandle(); $release = $this->parent->by_object['InstallRecipe']->installRelease;