修改项目缺陷描述查看差别时404问题
This commit is contained in:
parent
aacd3af1fe
commit
761840e0a4
|
@ -56,7 +56,7 @@ class JournalsController < ApplicationController
|
|||
@diff = Redmine::Helpers::Diff.new(@detail.value, @detail.old_value)
|
||||
respond_to do |format|
|
||||
format.html {
|
||||
render :layout => 'project_base'
|
||||
render :layout => 'new_base'
|
||||
}
|
||||
end
|
||||
end
|
||||
|
|
|
@ -361,15 +361,16 @@ module IssuesHelper
|
|||
end
|
||||
end
|
||||
|
||||
# 之所以注释是因为该功能冗余了
|
||||
if detail.property == 'attr' && detail.prop_key == 'description'
|
||||
s = l(:text_journal_changed_no_detail, :label => label)
|
||||
unless no_html
|
||||
diff_link = link_to l(:label_diff),
|
||||
{:controller => 'journals', :action => 'diff', :id => detail.journal_id,
|
||||
:detail_id => detail.id, :only_path => options[:only_path]},
|
||||
:title => l(:label_view_diff)
|
||||
s << " (#{ diff_link })"
|
||||
end
|
||||
# unless no_html
|
||||
# diff_link = link_to l(:label_diff),
|
||||
# {:controller => 'journals', :action => 'diff', :id => detail.journal_id,
|
||||
# :detail_id => detail.id, :only_path => options[:only_path]},
|
||||
# :title => l(:label_view_diff)
|
||||
# s << " (#{ diff_link })"
|
||||
# end
|
||||
s.html_safe
|
||||
elsif detail.value.present?
|
||||
case detail.property
|
||||
|
|
Loading…
Reference in New Issue