Code

Smarty Template for List generation
[gosa.git] / include / class_ObjectList.inc
index f9f7dd3bd6686e5e39795f507dc1ddf0a4523a4a..a82eef4615a53907ac22da9fa63e8a3fe6437d0c 100644 (file)
@@ -79,7 +79,7 @@ class ObjectList implements IteratorAggregate {
 '<img src="images/edittrash.png" alt="">';
 
     # Crap filling
-    $this->objects= array(
+    $tmp= array(
 
  array("dn" => "cn=1aherbertskiste,ou=workstations,ou=systems,o=Landeshauptstadt München,c=de",
               "cn" => "1aherbertskiste",
@@ -357,6 +357,15 @@ class ObjectList implements IteratorAggregate {
               "objectClass" => array('gotoWorkstation'))
 
         );
+
+    $tmp2 = array();
+    foreach($tmp as $entry){
+      $id = uniqid();
+      $entry['id']= $id;
+      $tmp2[] = $entry;
+    }
+
+    $this->objects = $tmp2;
   }