diff options
author | Morris Jobke <hey@morrisjobke.de> | 2019-04-08 22:06:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-08 22:06:53 +0200 |
commit | 978b4c9424320ee8a9f6cad63f3df27421879439 (patch) | |
tree | 347f7d0f39b52b112eeae9f9f4d0c438066d93c7 | |
parent | 5b932ed8e6247534544c13f26c306adad756e461 (diff) | |
parent | 64a507aaa3dd2c7b7fa43ce60c6e7aaa803e58d4 (diff) | |
download | nextcloud-server-978b4c9424320ee8a9f6cad63f3df27421879439.tar.gz nextcloud-server-978b4c9424320ee8a9f6cad63f3df27421879439.zip |
Merge pull request #15001 from nextcloud/backport/14985/stable15
[stable15] Check if OCA.Files.App is available before calling
-rw-r--r-- | apps/files/js/fileactions.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/js/fileactions.js b/apps/files/js/fileactions.js index 6ff04c2eb05..35576e0a711 100644 --- a/apps/files/js/fileactions.js +++ b/apps/files/js/fileactions.js @@ -661,7 +661,7 @@ this.register('dir', 'Open', OC.PERMISSION_READ, '', function (filename, context) { var dir = context.$file.attr('data-path') || context.fileList.getCurrentDirectory(); - if (OCA.Files.App.getActiveView() !== 'files') { + if (OCA.Files.App && OCA.Files.App.getActiveView() !== 'files') { OCA.Files.App.setActiveView('files'); OCA.Files.App.fileList.changeDirectory(OC.joinPaths(dir, filename), true, true); } else { |