##// END OF EJS Templates
Fixed: wiki and changeset links not displayed when previewing issue description or notes....
Jean-Philippe Lang -
r1124:30a7314b861f
parent child
Show More
@@ -21,7 +21,7 class IssuesController < ApplicationController
21 21
22 22 before_filter :find_issue, :only => [:show, :edit, :destroy_attachment]
23 23 before_filter :find_issues, :only => [:bulk_edit, :move, :destroy]
24 before_filter :find_project, :only => [:new, :update_form]
24 before_filter :find_project, :only => [:new, :update_form, :preview]
25 25 before_filter :authorize, :except => [:index, :changes, :preview, :update_form, :context_menu]
26 26 before_filter :find_optional_project, :only => [:index, :changes]
27 27 accept_key_auth :index, :changes
@@ -311,7 +311,7 class IssuesController < ApplicationController
311 311 end
312 312
313 313 def preview
314 issue = Issue.find_by_id(params[:id])
314 issue = @project.issues.find_by_id(params[:id])
315 315 @attachements = issue.attachments if issue
316 316 @text = params[:notes] || (params[:issue] ? params[:issue][:description] : nil)
317 317 render :partial => 'common/preview'
@@ -34,6 +34,7 private
34 34 def find_journal
35 35 @journal = Journal.find(params[:id])
36 36 render_403 and return false unless @journal.editable_by?(User.current)
37 @project = @journal.journalized.project
37 38 rescue ActiveRecord::RecordNotFound
38 39 render_404
39 40 end
@@ -28,7 +28,7
28 28 <%= f.hidden_field :lock_version %>
29 29 <%= submit_tag l(:button_submit) %>
30 30 <%= link_to_remote l(:label_preview),
31 { :url => { :controller => 'issues', :action => 'preview', :id => @issue },
31 { :url => { :controller => 'issues', :action => 'preview', :project_id => @project, :id => @issue },
32 32 :method => 'post',
33 33 :update => 'preview',
34 34 :with => 'Form.serialize("issue-form")',
@@ -8,7 +8,7
8 8 </div>
9 9 <%= submit_tag l(:button_create) %>
10 10 <%= link_to_remote l(:label_preview),
11 { :url => { :controller => 'issues', :action => 'preview', :id => @issue },
11 { :url => { :controller => 'issues', :action => 'preview', :project_id => @project, :id => @issue },
12 12 :method => 'post',
13 13 :update => 'preview',
14 14 :with => "Form.serialize('issue-form')",
General Comments 0
You need to be logged in to leave comments. Login now