diff --git a/app/helpers/event_news_helper.rb b/app/helpers/event_news_helper.rb index 879a812..f33f12e 100644 --- a/app/helpers/event_news_helper.rb +++ b/app/helpers/event_news_helper.rb @@ -139,7 +139,7 @@ module EventNewsHelper x = { "event_news_links" => links, "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], "speaker-css" => (fa["speaker_translations"][locale].blank? ? "display: none;" : ""), "host-css" => (fa["host_translations"][locale].blank? ? "display: none;" : ""), diff --git a/app/models/event_news_feed.rb b/app/models/event_news_feed.rb index 51cbd79..b2f73c0 100644 --- a/app/models/event_news_feed.rb +++ b/app/models/event_news_feed.rb @@ -124,7 +124,7 @@ class EventNewsFeed a["subtitle_ann"] = anns.subtitle if anns.display_subtitle? a["bulletin_links"] = [] 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 anns.tags.each do |tag| if !tag_ids.include?(tag.id.to_s)