Updated import data controller to import data correctly
This commit is contained in:
parent
c8be884291
commit
f16d1908be
|
@ -180,9 +180,9 @@ class Admin::ImportDataController < OrbitBackendController
|
||||||
@journal_paper = WritingJournal.new
|
@journal_paper = WritingJournal.new
|
||||||
@journal_paper.authors = b[:author]
|
@journal_paper.authors = b[:author]
|
||||||
if b[:title].blank?
|
if b[:title].blank?
|
||||||
@journal_paper.paper_title = b[:title]
|
|
||||||
else
|
|
||||||
@journal_paper.paper_title = "No Title Present"
|
@journal_paper.paper_title = "No Title Present"
|
||||||
|
else
|
||||||
|
@journal_paper.paper_title = b[:title]
|
||||||
end
|
end
|
||||||
@journal_paper.year = b[:year]
|
@journal_paper.year = b[:year]
|
||||||
@journal_paper.note = b[:remarks]
|
@journal_paper.note = b[:remarks]
|
||||||
|
|
Loading…
Reference in New Issue