فهرست منبع

fix check for name in filetree move

Brian Gough 8 سال پیش
والد
کامیت
6ed181d52c
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      services/web/public/coffee/ide/file-tree/FileTreeManager.coffee

+ 1 - 1
services/web/public/coffee/ide/file-tree/FileTreeManager.coffee

@@ -385,7 +385,7 @@ define [
 			# since that would break the tree structure.
 			# since that would break the tree structure.
 			return if @_isChildFolder(entity, parent_folder)
 			return if @_isChildFolder(entity, parent_folder)
 			# check if a doc/file/folder already exists with this name
 			# 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()
 				return @nameExistsError()
 			# Wait for the http response before doing the move
 			# Wait for the http response before doing the move
 			@ide.queuedHttp.post("/project/#{@ide.project_id}/#{entity.type}/#{entity.id}/move", {
 			@ide.queuedHttp.post("/project/#{@ide.project_id}/#{entity.type}/#{entity.id}/move", {