diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-18 16:07:36 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-10-18 16:07:36 +0000 |
commit | 11f7a139715eadfd774adbc7aa78ff5ad858e827 (patch) | |
tree | ed0c1911be3ca9aa74b00de83ff53b0b53169dd0 | |
parent | d10e9f1157c395871647f047aa0971b75cfa7873 (diff) | |
download | redmine-11f7a139715eadfd774adbc7aa78ff5ad858e827.tar.gz redmine-11f7a139715eadfd774adbc7aa78ff5ad858e827.zip |
Removed issue assignment validation to avoid validation failure when updating the issue and if the assignee is no longer a member of the project.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@848 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | app/controllers/issues_controller.rb | 1 | ||||
-rw-r--r-- | app/models/issue.rb | 5 |
2 files changed, 0 insertions, 6 deletions
diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index 1f983419f..fc35d8d8a 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -111,7 +111,6 @@ class IssuesController < ApplicationController end end show - render :action => 'show' end def change_status diff --git a/app/models/issue.rb b/app/models/issue.rb index fc7f6e1b8..7730cfd7a 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -71,11 +71,6 @@ class Issue < ActiveRecord::Base if start_date && soonest_start && start_date < soonest_start errors.add :start_date, :activerecord_error_invalid end - - # validate assignment - if assigned_to && !assignable_users.include?(assigned_to) - errors.add :assigned_to_id, :activerecord_error_invalid - end end def before_create |