diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-07 20:06:44 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-06-07 20:06:44 +0000 |
commit | 2e8b2d5e1312365afc60d2456ab1f67a336d77f3 (patch) | |
tree | 0644f1deeddb3d5f28737709e96349b5c82608c5 /app/models/journal.rb | |
parent | 383da1e6d610c9738aa3ed76db5c68de0dfcea5c (diff) | |
download | redmine-2e8b2d5e1312365afc60d2456ab1f67a336d77f3.tar.gz redmine-2e8b2d5e1312365afc60d2456ab1f67a336d77f3.zip |
Display status change before subject of issue on the activity view otherwise it may be truncated.
git-svn-id: http://redmine.rubyforge.org/svn/trunk@1505 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/journal.rb')
-rw-r--r-- | app/models/journal.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/journal.rb b/app/models/journal.rb index edf261e6d..ac141f68c 100644 --- a/app/models/journal.rb +++ b/app/models/journal.rb @@ -30,7 +30,7 @@ class Journal < ActiveRecord::Base :project_key => "#{Issue.table_name}.project_id", :date_column => "#{Issue.table_name}.created_on" - acts_as_event :title => Proc.new {|o| "#{o.issue.tracker.name} ##{o.issue.id}: #{o.issue.subject}" + ((s = o.new_status) ? " (#{s})" : '') }, + acts_as_event :title => Proc.new {|o| status = ((s = o.new_status) ? " (#{s})" : nil); "#{o.issue.tracker} ##{o.issue.id}#{status}: #{o.issue.subject}" }, :description => :notes, :author => :user, :type => Proc.new {|o| (s = o.new_status) && s.is_closed? ? 'issue-closed' : 'issue-edit' }, |