Fix list of favorites in VfsSelect contains previous selected contents as well

This commit is contained in:
Hadi Nategh 2017-11-20 17:49:36 +01:00
parent 6d51130cc6
commit 8bf0763c1f

View File

@ -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'];