Code

Updated folder add
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Oct 2010 07:33:47 +0000 (07:33 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 11 Oct 2010 07:33:47 +0000 (07:33 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19961 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc

index 4307d73055bb81f5f57f9468b3c6d301380c65e2..3a0fc4403be7041d1f5fe69509de913ea0bc58e6 100644 (file)
@@ -247,7 +247,6 @@ class FolderWidget extends plugin
                 if($this->dialog->isNew()){
                     // Detect the current entry
                     $base = $this->FolderWidgetListing->getBase();
-   
                     if(isset($this->baseEntryMap[$base])){
                         $entry = $this->folderList['linear'][$this->baseEntryMap[$base]];
                         $path = $entry['path'];
@@ -261,7 +260,10 @@ class FolderWidget extends plugin
                         $newItem['parentPath'] = $entry['path'];
                         $newItem['folderType'] = $this->getFolderType($newItem);
                         $newItem['base'] = $this->pathToDn($newPath);
+    
                         $this->folderList['linear'][$path]['children'][$newPath] = $newItem;
+                        $this->folderList['linear'][$newPath] = &$this->folderList['linear'][$path]['children'][$newPath];
+
                         $this->baseEntryMap[$newItem['base']] = $newPath;
                     }
                 }else{