From eb60ef3b954d679211a2fbc841b5a5e19042b115 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 11 Oct 2010 07:33:47 +0000 Subject: [PATCH] Updated folder add git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19961 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../personal/groupware/FolderWidget/class_FolderWidget.inc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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{ -- 2.30.2