Merge pull request #13883 from nextcloud/fix-dropping-a-folder-on-a-folder-row

Fix dropping a folder on a folder row
This commit is contained in:
Roeland Jago Douma 2019-01-29 15:44:21 +01:00 committed by GitHub
commit 050b9135d5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -523,7 +523,9 @@ OC.Uploader.prototype = _.extend({
self.filesClient.createDirectory(fullPath).always(function(status) {
// 405 is expected if the folder already exists
if ((status >= 200 && status < 300) || status === 405) {
self.trigger('createdfolder', fullPath);
if (status !== 405) {
self.trigger('createdfolder', fullPath);
}
deferred.resolve();
return;
}