From 76526284eeefed539de0b27879c470e534324314 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 27 Jan 2010 13:21:29 +0000 Subject: [PATCH] Updated hotplug selection git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15373 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../goto/personal/environment/class_environment.inc | 13 +++++++++++-- .../hotplugSelect/selectHotplug-filter.xml | 1 + 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/gosa-plugins/goto/personal/environment/class_environment.inc b/gosa-plugins/goto/personal/environment/class_environment.inc index 49a15dbc5..5dbd0adf5 100644 --- a/gosa-plugins/goto/personal/environment/class_environment.inc +++ b/gosa-plugins/goto/personal/environment/class_environment.inc @@ -837,10 +837,19 @@ class environment extends plugin $res = $this->dialog->save(); foreach($res as $hotplug){ $name = $hotplug['cn'][0]; + $entry['dn'] = $hotplug['dn']; + + /* Set class values */ + $tmp = preg_split("/\|/",$hotplug['gotoHotplugDevice'][0]); + $entry['name'] = $hotplug['cn'][0]; + $entry['description'] = $tmp[0]; + $entry['id'] = $tmp[1]; + $entry['produkt'] = $tmp[2]; + $entry['vendor'] = $tmp[3]; if($this->multiple_support_active){ - $hotplug['UsedByAllUsers'] = TRUE; + $entry['UsedByAllUsers'] = TRUE; } - $this->gotoHotplugDevices[$name]= $hotplug; + $this->gotoHotplugDevices[$name]= $entry; } $this->dialog= FALSE; $this->is_dialog = false; diff --git a/gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-filter.xml b/gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-filter.xml index ad071ab68..500aa91d1 100644 --- a/gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-filter.xml +++ b/gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-filter.xml @@ -15,6 +15,7 @@ objectClass cn description + gotoHotplugDevice auto -- 2.30.2