Code cleanup.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10177 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e0faf5cf84
commit
2e4f3d5a60
|
@ -583,7 +583,7 @@ class Issue < ActiveRecord::Base
|
|||
if new_record?
|
||||
nil
|
||||
else
|
||||
journals.first(:order => "#{Journal.table_name}.id DESC").try(:id)
|
||||
journals.maximum(:id)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue