Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 <[email protected]>
  • Loading branch information
CarlSchwan committed Feb 3, 2022
commit ebec0a6b3ed50d5f1563992bc7bd1f570749e3e1
6 changes: 6 additions & 0 deletions apps/files/js/filelist.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down