summaryrefslogtreecommitdiffstats
path: root/lib/redmine/nested_set/project_nested_set.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/redmine/nested_set/project_nested_set.rb')
-rw-r--r--lib/redmine/nested_set/project_nested_set.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/nested_set/project_nested_set.rb b/lib/redmine/nested_set/project_nested_set.rb
index 699927508..59ed3502f 100644
--- a/lib/redmine/nested_set/project_nested_set.rb
+++ b/lib/redmine/nested_set/project_nested_set.rb
@@ -114,7 +114,7 @@ module Redmine
end
def move_possible?(project)
- !is_or_is_ancestor_of?(project)
+ new_record? || !is_or_is_ancestor_of?(project)
end
def lock_nested_set