From: Jean-Philippe Lang Date: Wed, 7 Jan 2015 22:18:58 +0000 (+0000) Subject: Move always possible for new records. X-Git-Tag: 3.0.0~166 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=b7ad1e82cc6b88346b06f178df425667bd95e2c3;p=redmine.git Move always possible for new records. git-svn-id: http://svn.redmine.org/redmine/trunk@13846 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/lib/redmine/nested_set/issue_nested_set.rb b/lib/redmine/nested_set/issue_nested_set.rb index eadc71161..17fae7f47 100644 --- a/lib/redmine/nested_set/issue_nested_set.rb +++ b/lib/redmine/nested_set/issue_nested_set.rb @@ -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 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