diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-12 15:31:04 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-08-12 15:31:04 +0000 |
commit | 79b8bd0a38b7cff99ea122f092525755b0d53035 (patch) | |
tree | 6ff9aa389495c3ea45eaa772a2e54c8bac5bedbc /app/models/issue_relation.rb | |
parent | cf4e2165024fbdc6c9d8f47f7cb72cad9affb968 (diff) | |
download | redmine-79b8bd0a38b7cff99ea122f092525755b0d53035.tar.gz redmine-79b8bd0a38b7cff99ea122f092525755b0d53035.zip |
Added an option to be able to relate issues in different projects.
It can be set in Admin -> Settings (default: false).
git-svn-id: http://redmine.rubyforge.org/svn/trunk@620 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/issue_relation.rb')
-rw-r--r-- | app/models/issue_relation.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/issue_relation.rb b/app/models/issue_relation.rb index 05ea52057..07e940b85 100644 --- a/app/models/issue_relation.rb +++ b/app/models/issue_relation.rb @@ -38,7 +38,7 @@ class IssueRelation < ActiveRecord::Base def validate if issue_from && issue_to errors.add :issue_to_id, :activerecord_error_invalid if issue_from_id == issue_to_id - errors.add :issue_to_id, :activerecord_error_not_same_project unless issue_from.project_id == issue_to.project_id + errors.add :issue_to_id, :activerecord_error_not_same_project unless issue_from.project_id == issue_to.project_id || Setting.cross_project_issue_relations? errors.add_to_base :activerecord_error_circular_dependency if issue_to.all_dependent_issues.include? issue_from end end |