summaryrefslogtreecommitdiffstats
path: root/app/models/changeset.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-15 18:30:52 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-01-15 18:30:52 +0000
commit5f7995f97743a492d22e0326d8447053014c4500 (patch)
tree1c59a40024a9fa47f111ce7a48e057ffc027290f /app/models/changeset.rb
parent1bd5e58c847816ae5751ee0026e55597d1541dd4 (diff)
downloadredmine-5f7995f97743a492d22e0326d8447053014c4500.tar.gz
redmine-5f7995f97743a492d22e0326d8447053014c4500.zip
Adds repository_id param for activity and search results (#779).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8651 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models/changeset.rb')
-rw-r--r--app/models/changeset.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/changeset.rb b/app/models/changeset.rb
index e8438f11f..e90901ef5 100644
--- a/app/models/changeset.rb
+++ b/app/models/changeset.rb
@@ -34,7 +34,7 @@ class Changeset < ActiveRecord::Base
acts_as_event :title => Proc.new {|o| "#{l(:label_revision)} #{o.format_identifier}" + (o.short_comments.blank? ? '' : (': ' + o.short_comments))},
:description => :long_comments,
:datetime => :committed_on,
- :url => Proc.new {|o| {:controller => 'repositories', :action => 'revision', :id => o.repository.project, :rev => o.identifier}}
+ :url => Proc.new {|o| {:controller => 'repositories', :action => 'revision', :id => o.repository.project, :repository_id => o.repository.identifier_param, :rev => o.identifier}}
acts_as_searchable :columns => 'comments',
:include => {:repository => :project},