1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

remove trailing white-space from app/models/issue.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@14120 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2015-03-16 05:10:47 +00:00
parent 8d121cbec1
commit 1375b5b8c2

View File

@ -292,7 +292,7 @@ class Issue < ActiveRecord::Base
# * or if the status was not part of the new tracker statuses # * or if the status was not part of the new tracker statuses
# * or the status was nil # * or the status was nil
def tracker=(tracker) def tracker=(tracker)
if tracker != self.tracker if tracker != self.tracker
if status == default_status if status == default_status
self.status = nil self.status = nil
elsif status && tracker && !tracker.issue_status_ids.include?(status.id) elsif status && tracker && !tracker.issue_status_ids.include?(status.id)