From 6ed181d52c4e159e166ce46e30d6a3e500117585 Mon Sep 17 00:00:00 2001 From: Brian Gough Date: Mon, 29 Jan 2018 15:27:52 +0000 Subject: [PATCH] fix check for name in filetree move --- services/web/public/coffee/ide/file-tree/FileTreeManager.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/web/public/coffee/ide/file-tree/FileTreeManager.coffee b/services/web/public/coffee/ide/file-tree/FileTreeManager.coffee index 4b8af090bc..352f28a7bd 100644 --- a/services/web/public/coffee/ide/file-tree/FileTreeManager.coffee +++ b/services/web/public/coffee/ide/file-tree/FileTreeManager.coffee @@ -385,7 +385,7 @@ define [ # since that would break the tree structure. return if @_isChildFolder(entity, parent_folder) # check if a doc/file/folder already exists with this name - if @existsInThisFolder entity.name, parent_folder + if @existsInThisFolder parent_folder, entity.name return @nameExistsError() # Wait for the http response before doing the move @ide.queuedHttp.post("/project/#{@ide.project_id}/#{entity.type}/#{entity.id}/move", {