aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorCarl Schwan <carl@carlschwan.eu>2022-02-03 20:08:08 +0100
committerCarl Schwan <carl@carlschwan.eu>2022-02-03 20:08:08 +0100
commitebec0a6b3ed50d5f1563992bc7bd1f570749e3e1 (patch)
treeac010a10a8e62186a57cc6a40ab3a8a1d1bf6303 /apps
parentd635d58d19d5ab65c0be754fc32fce99672c249f (diff)
downloadnextcloud-server-ebec0a6b3ed50d5f1563992bc7bd1f570749e3e1.tar.gz
nextcloud-server-ebec0a6b3ed50d5f1563992bc7bd1f570749e3e1.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.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js
index 33e942bbc72..facbbf09e0e 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 = {