From ba4bc67e0e4bf8fb161a392d06acfa8018427dbc Mon Sep 17 00:00:00 2001 From: Rueshyna Date: Thu, 15 Nov 2012 11:06:33 +0800 Subject: [PATCH] tmp --- .../announcement/back_end/bulletin_categorys_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletin_categorys_controller.rb b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletin_categorys_controller.rb index 9f4ddf72..ea686aa0 100644 --- a/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletin_categorys_controller.rb +++ b/vendor/built_in_modules/announcement/app/controllers/panel/announcement/back_end/bulletin_categorys_controller.rb @@ -32,7 +32,7 @@ class Panel::Announcement::BackEnd::BulletinCategorysController < OrbitBackendCo end def get_bulletins_json - bulletin = Bulletin.where(params[:category_id]) + bulletin = Bulletin.find(:bulletin_category_id) data = Array.new bulletin.each do |b| @@ -46,7 +46,7 @@ class Panel::Announcement::BackEnd::BulletinCategorysController < OrbitBackendCo data << { title: b.title, - link: panel_announcement_front_end_bulletin_path(bulletin, :category_id => b.bulletin_category.id), + link: "http://#{request.host_with_port}#{panel_announcement_front_end_bulletin_path(b, :category_id => b.bulletin_category.id)}", postdate: display_date_time(b.postdate), deadline: deadline, tag: b.sorted_tags.to_a,