@@ -27,7 +27,11 class TimeEntry < ActiveRecord::Base | |||
|
27 | 27 | attr_protected :user_id, :tyear, :tmonth, :tweek |
|
28 | 28 | |
|
29 | 29 | acts_as_customizable |
|
30 | acts_as_event :title => Proc.new {|o| "#{l_hours(o.hours)} (#{(o.issue || o.project).event_title})"}, | |
|
30 | acts_as_event :title => Proc.new { |o| | |
|
31 | related = o.issue if o.issue && o.issue.visible? | |
|
32 | related ||= o.project | |
|
33 | "#{l_hours(o.hours)} (#{related.event_title})" | |
|
34 | }, | |
|
31 | 35 | :url => Proc.new {|o| {:controller => 'timelog', :action => 'index', :project_id => o.project, :issue_id => o.issue}}, |
|
32 | 36 | :author => :user, |
|
33 | 37 | :group => :issue, |
General Comments 0
You need to be logged in to leave comments.
Login now