From 27cf99462edffc445006f9e0a04d82b5f4e30b53 Mon Sep 17 00:00:00 2001 From: Christophe Vilayphiou Date: Tue, 22 May 2012 14:42:19 +0800 Subject: [PATCH] Fix bug in page and news --- .../panel/news/back_end/news_bulletins_controller.rb | 4 ---- .../back_end/page_contexts/_page_context.html.erb | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/vendor/built_in_modules/news/app/controllers/panel/news/back_end/news_bulletins_controller.rb b/vendor/built_in_modules/news/app/controllers/panel/news/back_end/news_bulletins_controller.rb index 706e7663..46bd2f02 100644 --- a/vendor/built_in_modules/news/app/controllers/panel/news/back_end/news_bulletins_controller.rb +++ b/vendor/built_in_modules/news/app/controllers/panel/news/back_end/news_bulletins_controller.rb @@ -41,10 +41,6 @@ class Panel::News::BackEnd::NewsBulletinsController < OrbitBackendController @news_bulletin_link = NewsBulletinLink.new @link_url = panel_news_back_end_news_bulletins_path - - @news_bulletins.delete_if{ |news_bulletin| - news_bulletin.is_pending == true && ((!news_bulletin.bulletin_category.authed_users('fact_check').include?(current_user) rescue nil) || news_bulletin.create_user_id!=current_user.id) - } @news_bulletin_file = NewsBulletinFile.new @file_url = panel_news_back_end_news_bulletins_path diff --git a/vendor/built_in_modules/page_content/app/views/panel/page_content/back_end/page_contexts/_page_context.html.erb b/vendor/built_in_modules/page_content/app/views/panel/page_content/back_end/page_contexts/_page_context.html.erb index ea8303c2..7e056432 100644 --- a/vendor/built_in_modules/page_content/app/views/panel/page_content/back_end/page_contexts/_page_context.html.erb +++ b/vendor/built_in_modules/page_content/app/views/panel/page_content/back_end/page_contexts/_page_context.html.erb @@ -18,6 +18,6 @@ <%= link_to page_context.version, panel_page_content_back_end_view_path(page_context.page_id) %> <%end -%> - <%= display_date_time(page_context) %> + <%= display_date_time(page_context.updated_at) %> <%= User.find(page_context.create_user_id).name %> \ No newline at end of file