Project

General

Profile

Actions

Defect #10275

closed

Message object not passed to wiki macros for head topic and in preview edit mode

Added by Vitaly Klimov almost 13 years ago. Updated almost 13 years ago.

Status:
Closed
Priority:
Normal
Category:
Forums
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

nil passed instead of message object to wiki macros in textilizable function for head topic or for preview in edit mode. It is caused by inproper call to textilizable in messages\show.html.erb, line 30:

<%= textilizable(@topic.content, :attachments => @topic.attachments) %>

It should be corrected to

<%= textilizable(@topic, :content, :attachments => @topic.attachments) %>

For edit mode preview:

in file messages\edit.html.erb, line 15 should be changed from

:action => 'preview', :board_id => @board },

to

:action => 'preview', :board_id => @board, :id => message },

for correct message variable calculation in MessagesController.preview method

Actions

Also available in: Atom PDF