From 11f7a139715eadfd774adbc7aa78ff5ad858e827 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Thu, 18 Oct 2007 16:07:36 +0000 Subject: [PATCH] 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 --- app/controllers/issues_controller.rb | 1 - app/models/issue.rb | 5 ----- 2 files changed, 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 -- 2.39.5