]> source.dussan.org Git - redmine.git/commitdiff
Remove duplicate validation.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 29 Nov 2009 20:05:15 +0000 (20:05 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sun, 29 Nov 2009 20:05:15 +0000 (20:05 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3110 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/models/issue.rb

index 658c8efbf58e0af802b411a65c3ae074f41197f5..d279f3c92028b8f221131228f064a9c018b1ca06 100644 (file)
@@ -166,10 +166,6 @@ class Issue < ActiveRecord::Base
     end
   end
   
-  def validate_on_create
-    errors.add :tracker_id, :invalid unless project.trackers.include?(tracker)
-  end
-  
   def before_create
     # default assignment based on category
     if assigned_to.nil? && category && category.assigned_to