Attachments should be available to the text formatter when previewing an existing news.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10400 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2012-09-16 14:18:43 +00:00
parent 2058c66d73
commit ca4f2c59b6
4 changed files with 23 additions and 4 deletions
+4
View File
@@ -34,6 +34,10 @@ class PreviewsController < ApplicationController
end
def news
if params[:id].present? && news = News.visible.find_by_id(params[:id])
@previewed = news
@attachments = news.attachments
end
@text = (params[:news] ? params[:news][:description] : nil)
render :partial => 'common/preview'
end