From 1ecfab062ab77afa8c54ebf58c3bbd7952483a4a Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Mon, 20 Nov 2017 17:49:36 +0100 Subject: [PATCH] Fix list of favorites in VfsSelect contains previous selected contents as well --- api/src/Etemplate/Widget/Vfs.php | 1 + 1 file changed, 1 insertion(+) diff --git a/api/src/Etemplate/Widget/Vfs.php b/api/src/Etemplate/Widget/Vfs.php index a7b33bd65e..7657e99a7e 100644 --- a/api/src/Etemplate/Widget/Vfs.php +++ b/api/src/Etemplate/Widget/Vfs.php @@ -455,6 +455,7 @@ class Vfs extends File $files = array(); $favorites = \EGroupware\Api\Framework\Favorites::get_favorites('filemanager'); $n = 0; + $content['dir'] = array(); foreach($favorites as $favorite) { $path = $favorite['state']['path'];