Commit e394efeb authored by jplang's avatar jplang

Don't add the inclusion error when tracker is not set, the blank error is enough.

git-svn-id: e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 1ec03db0
......@@ -691,7 +691,7 @@ class Issue < ActiveRecord::Base
# Checks that the issue can not be added/moved to a disabled tracker
if project && (tracker_id_changed? || project_id_changed?)
unless project.trackers.include?(tracker)
if tracker && !project.trackers.include?(tracker)
errors.add :tracker_id, :inclusion
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment