diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-07 22:18:58 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-01-07 22:18:58 +0000 |
commit | b7ad1e82cc6b88346b06f178df425667bd95e2c3 (patch) | |
tree | ddf66117a6c575675d668fc89ddf693a4a882b9f /lib | |
parent | dcda9977e376b383191fe1f5a963bc28a5dd84ee (diff) | |
download | redmine-b7ad1e82cc6b88346b06f178df425667bd95e2c3.tar.gz redmine-b7ad1e82cc6b88346b06f178df425667bd95e2c3.zip |
Move always possible for new records.
git-svn-id: http://svn.redmine.org/redmine/trunk@13846 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/nested_set/issue_nested_set.rb | 2 | ||||
-rw-r--r-- | lib/redmine/nested_set/project_nested_set.rb | 2 |
2 files changed, 2 insertions, 2 deletions
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 |