fixed a small research file bug in import

This commit is contained in:
Harry Bomrah 2014-10-01 18:08:05 +08:00
parent c2fe693ceb
commit c0fe4d9b2a
1 changed files with 1 additions and 1 deletions

View File

@ -876,7 +876,7 @@ class Admin::ImportController < OrbitAdminController
:publish_date => research["date_of_publication"], :publish_date => research["date_of_publication"],
:rss2_id => research["rss2_id"]) :rss2_id => research["rss2_id"])
if research["file"] if !research["file"].blank?
research_file = new_research.research_files.new research_file = new_research.research_files.new
research_file.remote_file_url = research["file"]["file"] research_file.remote_file_url = research["file"]["file"]
research_file.title_translations = {"en" => research["file"]["name"], "zh_tw" => research["file"]["name"]} research_file.title_translations = {"en" => research["file"]["name"], "zh_tw" => research["file"]["name"]}