diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-01-11 02:47:11 +0100 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2018-01-11 02:47:11 +0100 |
commit | f29c1cf13ae4f5dd38c7476c55ff5e23916bd6f4 (patch) | |
tree | 81c0292920f43204fbc1df1b20a141c0ccb16e33 /apps/files/js | |
parent | 7a088cfcf56a841f16023a64a442620fd20c0c6e (diff) | |
download | nextcloud-server-f29c1cf13ae4f5dd38c7476c55ff5e23916bd6f4.tar.gz nextcloud-server-f29c1cf13ae4f5dd38c7476c55ff5e23916bd6f4.zip |
Fix empty details view after renaming a file
"FileList._updateDetailsView" expects either a file name (as a string)
or a file model (as an "OCA.File.FileInfoModel"), but when called
through "updateInList" an "OC.Files.FileInfo" object was given instead.
As the given attribute was not a model "_updateDetailsView" treated it
as a file name and tried to get the model for that file, which failed
and caused the details view to be emptied.
Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'apps/files/js')
-rw-r--r-- | apps/files/js/filelist.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/filelist.js b/apps/files/js/filelist.js index 7a4ea492752..e50b402dea8 100644 --- a/apps/files/js/filelist.js +++ b/apps/files/js/filelist.js @@ -2266,7 +2266,7 @@ function updateInList(fileInfo) { self.updateRow(tr, fileInfo); - self._updateDetailsView(fileInfo, false); + self._updateDetailsView(fileInfo.name, false); } // TODO: too many nested blocks, move parts into functions |