forked from saurabh/orbit4-5
fixed a small research file bug in import
This commit is contained in:
parent
c2fe693ceb
commit
c0fe4d9b2a
|
@ -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"]}
|
||||||
|
|
Loading…
Reference in New Issue