From 42c62ebca03839d396828c879856618575745cf0 Mon Sep 17 00:00:00 2001 From: Christophe Vilayphiou Date: Tue, 18 Sep 2012 14:31:50 +0800 Subject: [PATCH] Fix preview for announcement (was retuning js instead of html) --- .../panel/announcement/back_end/bulletins_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb index ecffb3e1..8078d5e5 100644 --- a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb +++ b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletins_controller.rb @@ -18,7 +18,7 @@ class Panel::Announcement::BackEnd::BulletinsController < OrbitBackendController bulletin = Bulletin.new params @preview_obj = bulletin.to_preview @preview_obj.save - render '/shared/preview/preview.js.erb' + render '/shared/preview/preview.html.erb' end def index