Code

Added parent folder to the list
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Oct 2010 14:08:38 +0000 (14:08 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 7 Oct 2010 14:08:38 +0000 (14:08 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@19938 594d385d-05f5-0310-b6e9-bd551577e9d8

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

index aba8249bfad6f7de686ef800b587eb01f3134efa..083df4fe5301fe79e4f1eb9feac81b1d16f927e8 100644 (file)
@@ -22,8 +22,13 @@ class filterFolderWidget {
             $parent = $item;
         }
 
+
         // Add entries
         $ret = array();
+        if($parent != NULL){
+            $parent['name'] = '..';
+            filterFolderWidget::addEntry($ret, $parent, FALSE, $filter);
+        }
         foreach($items as $item){
             filterFolderWidget::addEntry($ret, $item, $scope == 'sub', $filter);
         }