Merge pull request #13888 from nextcloud/backport/13883/stable14

[stable14] Fix dropping a folder on a folder row
This commit is contained in:
Christoph Wurst 2019-01-30 13:52:04 +01:00 committed by GitHub
commit 3add3f997e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -516,7 +516,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;
}