|
|
|
@ -57,7 +57,7 @@ class Issue < ActiveRecord::Base
|
|
|
|
|
# sort by id so that limited eager loading doesn't break with postgresql
|
|
|
|
|
:order_column => "#{table_name}.id"
|
|
|
|
|
acts_as_event :title => Proc.new {|o| "#{o.tracker.name} ##{o.id} (#{o.status}): #{o.subject}"},
|
|
|
|
|
:url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o.id}},
|
|
|
|
|
:url => Proc.new {|o| {:controller => 'issues', :action => 'show', :id => o}},
|
|
|
|
|
:type => Proc.new {|o| 'issue' + (o.closed? ? ' closed' : '') }
|
|
|
|
|
|
|
|
|
|
acts_as_activity_provider :find_options => {:include => [:project, :author, :tracker]},
|
|
|
|
@ -217,7 +217,7 @@ class Issue < ActiveRecord::Base
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
def to_param
|
|
|
|
|
@to_param ||= "#{id}_#{self.project.name}(#{self.project.issues.index(self)}|#{self.project.issues.count})"#.parameterize
|
|
|
|
|
@to_param ||= "#{id}_#{self.project.name}(#{self.project.issues.index(self)+1}-#{self.project.issues.count})"#.parameterize
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
# Overrides Redmine::Acts::Customizable::InstanceMethods#available_custom_fields
|
|
|
|
|