Fix vfsSelect does not show any content for the first load

This commit is contained in:
Hadi Nategh 2017-11-09 10:25:35 +01:00
parent 977d5db61b
commit 6b0a8a1b5d

View File

@ -448,7 +448,8 @@ class Vfs extends File
{ {
$content['path'] = \EGroupware\Api\Vfs::get_home_dir(); $content['path'] = \EGroupware\Api\Vfs::get_home_dir();
} }
elseif ($favorites_flag)
if ($favorites_flag)
{ {
// Display favorites as if they were folders // Display favorites as if they were folders
$files = array(); $files = array();
@ -529,7 +530,7 @@ class Vfs extends File
if ($download_baseUrl[0] == '/') $download_baseUrl = \EGroupware\Api\Egw::link($download_baseUrl); if ($download_baseUrl[0] == '/') $download_baseUrl = \EGroupware\Api\Egw::link($download_baseUrl);
$content['download_baseUrl'] = $download_baseUrl; $content['download_baseUrl'] = $download_baseUrl;
} }
Api\Cache::setSession('filemanger', 'select_path', $content['path']); Api\Cache::setSession('filemanger', 'select_path', $content['path']);
// Response // Response
$response->data(array( $response->data(array(