diff options
author | Carl Schwan <carl@carlschwan.eu> | 2022-02-03 20:08:08 +0100 |
---|---|---|
committer | backportbot[bot] <backportbot[bot]@users.noreply.github.com> | 2022-02-07 10:58:28 +0000 |
commit | 44c9b2de8b157894b05a8f519bae92be9e1d8535 (patch) | |
tree | 3c28ca8e84bcb1688e6d0c798a0bd547d5f5e109 /apps | |
parent | a0b80da3787aa962716eb37836d9c13c7b2b2fd0 (diff) | |
download | nextcloud-server-44c9b2de8b157894b05a8f519bae92be9e1d8535.tar.gz nextcloud-server-44c9b2de8b157894b05a8f519bae92be9e1d8535.zip |
Fix bugs with incorrect currentFileList in the favorite and share by you
view
This was causing bugs when trying to create new template in this views
Signed-off-by: Carl Schwan <carl@carlschwan.eu>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files/js/filelist.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 76fb06c91fb..1e2bd6b47cb 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2294,6 +2294,12 @@ this.setFiles(result); if (this.dirInfo) { + // Make sure the currentFileList is the current one + // When navigating to the favorite or share with you virtual + // folder, this is not correctly set during the initialisation + // otherwise. + OCA.Files.App && OCA.Files.App.updateCurrentFileList(this); + var newFileId = this.dirInfo.id; // update fileid in URL var params = { |