Index: app/models/changeset.rb =================================================================== --- app/models/changeset.rb (revision 1291) +++ app/models/changeset.rb (working copy) @@ -78,7 +78,8 @@ comments.scan(Regexp.new("(#{kw_regexp})[\s:]+(([\s,;&]*#?\\d+)+)", Regexp::IGNORECASE)).each do |match| action = match[0] target_issue_ids = match[1].scan(/\d+/) - target_issues = repository.project.issues.find_all_by_id(target_issue_ids) + #target_issues = repository.project.issues.find_all_by_id(target_issue_ids) + target_issues = Issue.find_all_by_id(target_issue_ids) if fix_status && fix_keywords.include?(action.downcase) # update status of issues logger.debug "Issues fixed by changeset #{self.revision}: #{issue_ids.join(', ')}." if logger && logger.debug? Index: app/views/issues/_changesets.rhtml =================================================================== --- app/views/issues/_changesets.rhtml (revision 1291) +++ app/views/issues/_changesets.rhtml (working copy) @@ -1,7 +1,7 @@ <% changesets.each do |changeset| %>

<%= link_to("#{l(:label_revision)} #{changeset.revision}", - :controller => 'repositories', :action => 'revision', :id => @project, :rev => changeset.revision) %>
+ :controller => 'repositories', :action => 'revision', :id => changeset.repository.project, :rev => changeset.revision) %>
<%= authoring(changeset.committed_on, changeset.committer) %>

<%= textilizable(changeset, :comments) %>
Index: app/views/issues/show.rhtml =================================================================== --- app/views/issues/show.rhtml (revision 1291) +++ app/views/issues/show.rhtml (working copy) @@ -73,8 +73,8 @@ <% end %> - -<% if @issue.changesets.any? && User.current.allowed_to?(:view_changesets, @project) %> +<% #if @issue.changesets.any? && User.current.allowed_to?(:view_changesets, @project) %> +<% if @issue.changesets.any? %>

<%=l(:label_associated_revisions)%>

<%= render :partial => 'changesets', :locals => { :changesets => @issue.changesets} %> Index: app/views/repositories/changes.rhtml ===================================================================