tmp
This commit is contained in:
parent
bd7518093f
commit
bfef1a8e7c
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue