From 1cc44faa514f12ca967a434a9843b78c06a99327 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 26 Jul 2011 11:21:57 +0000 Subject: [PATCH] Updated config item mangement git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20949 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/admin/systems/goto/Device/class_DeviceConfig.inc | 6 ++++++ 1 file changed, 6 insertions(+) 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; -- 2.30.2