From 7a4a41e6c44f0b3056e759101d496ec9275e043c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Wed, 16 Aug 2023 11:50:44 +0200 Subject: [PATCH] fix: Provide valid fileList and fileId context on new file action MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- src/view/NewFileMenu.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/view/NewFileMenu.js b/src/view/NewFileMenu.js index f5e1bb9c18..792eb6f2f5 100644 --- a/src/view/NewFileMenu.js +++ b/src/view/NewFileMenu.js @@ -107,8 +107,9 @@ const NewFileMenu = { const fileAction = OCA.Files.fileActions.getDefaultFileAction(fileModel.get('mimetype'), 'file', OC.PERMISSION_ALL) fileAction.action(filename, { $file: null, + fileId: fileModel.id, dir: getCurrentDirectory(), - FileList, + fileList: FileList, fileActions: FileList.fileActions, }) } else {