Code

Updated hotplug selection
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Jan 2010 13:21:29 +0000 (13:21 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 27 Jan 2010 13:21:29 +0000 (13:21 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15373 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/goto/personal/environment/class_environment.inc
gosa-plugins/goto/personal/environment/hotplugSelect/selectHotplug-filter.xml

index 49a15dbc5b74541f5cdaeac4ea1bd660df668889..5dbd0adf5d56e1712a72c9f8d329c1d5501a415d 100644 (file)
@@ -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;
index ad071ab68c8731e3cdc4c485faf316947f1b7ba1..500aa91d16a72931c8512bec4344b0cc7233c56f 100644 (file)
@@ -15,6 +15,7 @@
       <attribute>objectClass</attribute>
       <attribute>cn</attribute>
       <attribute>description</attribute>
+      <attribute>gotoHotplugDevice</attribute>
     </query>
     <scope>auto</scope>
   </search>