From b0cdcbeccafa43b220f5e81c88cf7dcfa82e2c3b Mon Sep 17 00:00:00 2001 From: "Matthew K. Fu JuYuan" Date: Mon, 1 Oct 2012 21:05:16 +0800 Subject: [PATCH] fix preview bug only happen when production --- .../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 fb3acfdc..b2316ef7 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.html.erb' + render '/shared/preview/preview.html.erb', :layout=>false end def index