From 6b0a8a1b5deeba2a3d6cf386c99cc8320533b904 Mon Sep 17 00:00:00 2001 From: Hadi Nategh Date: Thu, 9 Nov 2017 10:25:35 +0100 Subject: [PATCH] Fix vfsSelect does not show any content for the first load --- api/src/Etemplate/Widget/Vfs.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/api/src/Etemplate/Widget/Vfs.php b/api/src/Etemplate/Widget/Vfs.php index 7fafabd9da..eb90c6084c 100644 --- a/api/src/Etemplate/Widget/Vfs.php +++ b/api/src/Etemplate/Widget/Vfs.php @@ -448,7 +448,8 @@ class Vfs extends File { $content['path'] = \EGroupware\Api\Vfs::get_home_dir(); } - elseif ($favorites_flag) + + if ($favorites_flag) { // Display favorites as if they were folders $files = array(); @@ -529,7 +530,7 @@ class Vfs extends File if ($download_baseUrl[0] == '/') $download_baseUrl = \EGroupware\Api\Egw::link($download_baseUrl); $content['download_baseUrl'] = $download_baseUrl; } - + Api\Cache::setSession('filemanger', 'select_path', $content['path']); // Response $response->data(array(