]> source.dussan.org Git - redmine.git/commitdiff
Move always possible for new records.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 7 Jan 2015 22:18:58 +0000 (22:18 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 7 Jan 2015 22:18:58 +0000 (22:18 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@13846 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/redmine/nested_set/issue_nested_set.rb
lib/redmine/nested_set/project_nested_set.rb

index eadc7116107112df700bfa12b7bf9b8e96867398..17fae7f479dde0cdfdc823a97150a4b8318117da 100644 (file)
@@ -145,7 +145,7 @@ module Redmine
       end
 
       def move_possible?(issue)
-        !is_or_is_ancestor_of?(issue)
+        new_record? || !is_or_is_ancestor_of?(issue)
       end
 
       def lock_nested_set
index 699927508fc6fd997e9ddc44f7b29b2027eb90fa..59ed3502fe078f3fa403785ff77c05ebfa269871 100644 (file)
@@ -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