操作
Defect #1217
完了wiki_extensions Error : comment_form and comments macro with preview
説明
具体的な再現方法
What steps will reproduce the problem?¶
redmine_wiki_extensions 0.6.2 で
Wikiページ新規作成時に、下記マクロを記載しプレビューをすると
{{comment_form}} と書くととコメント追加のためのフォームを表示します。 {{comments}} と書くとそのページに書きこまれたコメントの一覧を表示します。
下記マクロのエラーがプレビューに表示されます。ただし、そのまま保存してしまえば動作に問題はありません。
Error executing the comment_form macro (undefined method `page' for nil:NilClass)
Error executing the comments macro (undefined method `page' for nil:NilClass)
なお、既存にwikiページに追記する場合、プレビュー表示をしても問題はありません。
※ 他のマクロは試した範囲では問題なさそうでした。
期待する結果と実際の結果
What is the expected output? What do you see instead?¶
新規作成ページでもプレビューできること。
下記コマンドの実行結果を教えてください。
Please give us a result of following command.¶
% ruby script/about
Environment: Redmine version 2.2.2.stable Ruby version 1.9.3 (i686-linux) Rails version 3.2.11 Environment production Database adapter SQLite Redmine plugins: polls 0.0.1 redmine_absolute_dates 0.0.2 redmine_drafts 0.2.0 redmine_export_with_journals 0.0.6 redmine_ezfaq_plugin 0.3.6 redmine_scm 0.4.2 redmine_wiki_extensions 0.6.2 redmine_wiki_unc 0.0.3 redmine_work_time 0.2.10
Please provide any additional information below.¶
操作