diff --git a/app/helpers/journals_helper.rb b/app/helpers/journals_helper.rb index 788bd0765..480524457 100644 --- a/app/helpers/journals_helper.rb +++ b/app/helpers/journals_helper.rb @@ -25,7 +25,7 @@ module JournalsHelper links = [] if !journal.notes.blank? links << link_to(l(:button_quote), - {:controller => 'journals', :action => 'new', :id => issue, :journal_id => journal}, + {:controller => 'journals', :action => 'new', :id => issue.id, :journal_id => journal}, :remote => true, :method => 'post', :title => l(:button_quote)) if options[:reply_links] diff --git a/app/models/issue.rb b/app/models/issue.rb index b7e1cfff8..f4eb4aa23 100644 --- a/app/models/issue.rb +++ b/app/models/issue.rb @@ -216,9 +216,9 @@ class Issue < ActiveRecord::Base base_reload(*args) end - # def to_param - # @to_param ||= - # end + def to_param + @to_param ||= "#{id}_#{self.project.name}(#{self.project.issues.index(self)}|#{self.project.issues.count})"#.parameterize + end # Overrides Redmine::Acts::Customizable::InstanceMethods#available_custom_fields def available_custom_fields diff --git a/app/views/issues/show.html.erb b/app/views/issues/show.html.erb index 7166f306f..6678e2f02 100644 --- a/app/views/issues/show.html.erb +++ b/app/views/issues/show.html.erb @@ -87,7 +87,7 @@ end %> <% if @issue.description? %>
<%=l(:field_description)%>