]> source.dussan.org Git - redmine.git/commitdiff
Removed issue assignment validation to avoid validation failure when updating the...
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 18 Oct 2007 16:07:36 +0000 (16:07 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 18 Oct 2007 16:07:36 +0000 (16:07 +0000)
git-svn-id: http://redmine.rubyforge.org/svn/trunk@848 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/issues_controller.rb
app/models/issue.rb

index 1f983419f952c604d2579482e49a800e18cd868e..fc35d8d8a2333a083ee32f251b808d71211631bc 100644 (file)
@@ -111,7 +111,6 @@ class IssuesController < ApplicationController
       end
     end
     show
-    render :action => 'show'
   end
 
   def change_status
index fc7f6e1b8b26a6b341a0b419956ddc93bc0c5544..7730cfd7ab91d390f4ceadd4ad14b60052e515a3 100644 (file)
@@ -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