プロジェクト

全般

プロフィール

Vote #71394

完了

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

Admin Redmine さんが約4年前に追加. 約4年前に更新.

ステータス:
Closed
優先度:
通常
担当者:
-
カテゴリ:
Forums_5
対象バージョン:
開始日:
2022/05/09
期日:
進捗率:

0%

予定工数:
category_id:
5
version_id:
40
issue_org_id:
10275
author_id:
6870
assigned_to_id:
1
comments:
3
status_id:
5
tracker_id:
1
plus1:
0
affected_version:
closed_on:
affected_version_id:
ステータス-->[Closed]

説明

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


journals

Small fix - last correction should be

<pre><code class="ruby">
:action => 'preview', :board_id => @board, :id => @message },
</code></pre>
--------------------------------------------------------------------------------
Please don't assign issues.
--------------------------------------------------------------------------------
Fixed in r8949 and r8950.
--------------------------------------------------------------------------------

Admin Redmine さんが約4年前に更新

  • カテゴリForums_5 にセット
  • 対象バージョン1.4.0_40 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0