summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Petry <vincent@nextcloud.com>2022-02-18 15:51:30 +0100
committerGitHub <noreply@github.com>2022-02-18 15:51:30 +0100
commitf69a79ed6c15559cdf68cf3a9d7120f8b4a81671 (patch)
treecc37768949324e5eb43fc8d96f6b1b3698a7ce40
parent580feb4501889e084be134c0947882e74696a825 (diff)
parent81702295e1d6f356689a5feb01afcf07dedb5b4b (diff)
downloadnextcloud-server-f69a79ed6c15559cdf68cf3a9d7120f8b4a81671.tar.gz
nextcloud-server-f69a79ed6c15559cdf68cf3a9d7120f8b4a81671.zip
Merge pull request #31050 from nextcloud/backport/30995/stable23
[stable23] Fix bugs with incorrect currentFileList in the favorite and share by you view
-rw-r--r--apps/files/js/filelist.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 6797ef2b1f4..4b743388a7f 100644
--- a/apps/files/js/filelist.js
+++ b/apps/files/js/filelist.js
@@ -2293,6 +2293,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 = {