fix error
This commit is contained in:
parent
b46bfee8d7
commit
09b6b81f5a
|
@ -139,7 +139,7 @@ module EventNewsHelper
|
||||||
x = {
|
x = {
|
||||||
"event_news_links" => links,
|
"event_news_links" => links,
|
||||||
"event_news_files" => files,
|
"event_news_files" => files,
|
||||||
"event_carousel_images" => fa["bulletin_carousel_images"].to_a,
|
"event_carousel_images" => fa["event_carousel_images"].to_a,
|
||||||
"title" => fa["title_translations"][locale],
|
"title" => fa["title_translations"][locale],
|
||||||
"speaker-css" => (fa["speaker_translations"][locale].blank? ? "display: none;" : ""),
|
"speaker-css" => (fa["speaker_translations"][locale].blank? ? "display: none;" : ""),
|
||||||
"host-css" => (fa["host_translations"][locale].blank? ? "display: none;" : ""),
|
"host-css" => (fa["host_translations"][locale].blank? ? "display: none;" : ""),
|
||||||
|
|
|
@ -124,7 +124,7 @@ class EventNewsFeed
|
||||||
a["subtitle_ann"] = anns.subtitle if anns.display_subtitle?
|
a["subtitle_ann"] = anns.subtitle if anns.display_subtitle?
|
||||||
a["bulletin_links"] = []
|
a["bulletin_links"] = []
|
||||||
a["bulletin_files"] = []
|
a["bulletin_files"] = []
|
||||||
a["bulletin_carousel_images"] = anns.bulletin_carousel_images.map{|image| {"src"=>"#{base_url}" + image.file.url,"description"=>image.description.to_s,"description_text"=>image.description_text }}
|
a["event_carousel_images"] = anns.event_carousel_images.map{|image| {"src"=>"#{base_url}" + image.file.url,"description"=>image.description.to_s,"description_text"=>image.description_text }}
|
||||||
a["external_link"] = anns["is_external_link"] ? anns.external_link : nil
|
a["external_link"] = anns["is_external_link"] ? anns.external_link : nil
|
||||||
anns.tags.each do |tag|
|
anns.tags.each do |tag|
|
||||||
if !tag_ids.include?(tag.id.to_s)
|
if !tag_ids.include?(tag.id.to_s)
|
||||||
|
|
Loading…
Reference in New Issue