From: hickert Date: Mon, 11 Oct 2010 07:33:47 +0000 (+0000) Subject: Updated folder add X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=eb60ef3b954d679211a2fbc841b5a5e19042b115;p=gosa.git Updated folder add git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19961 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc index 4307d7305..3a0fc4403 100644 --- a/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc +++ b/gosa-plugins/groupware/personal/groupware/FolderWidget/class_FolderWidget.inc @@ -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{