From f103a0fb08d137901174ef7e15dbc2c9a2ec3ca1 Mon Sep 17 00:00:00 2001 From: yflory <yann.flory@xwiki.com> Date: Mon, 24 Feb 2020 16:32:18 +0100 Subject: [PATCH] Fix dropping files in non-ROOT categories in the drive --- www/common/drive-ui.js | 1 + 1 file changed, 1 insertion(+) diff --git a/www/common/drive-ui.js b/www/common/drive-ui.js index 2e9c7c405..01d9911e4 100644 --- a/www/common/drive-ui.js +++ b/www/common/drive-ui.js @@ -1681,6 +1681,7 @@ define([ && $target.parents('#cp-app-drive-content')) { newPath = currentPath; } + if (newPath[0] !== ROOT) { newPath = [ROOT]; } return newPath; }; var onFileDrop = APP.onFileDrop = function (file, e) {