From b7ad1e82cc6b88346b06f178df425667bd95e2c3 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 7 Jan 2015 22:18:58 +0000 Subject: [PATCH] Move always possible for new records. git-svn-id: http://svn.redmine.org/redmine/trunk@13846 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- lib/redmine/nested_set/issue_nested_set.rb | 2 +- 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 -- 2.39.5