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.authors = b[:author]
|
||||
if b[:title].blank?
|
||||
@journal_paper.paper_title = b[:title]
|
||||
@journal_paper.paper_title = "No Title Present"
|
||||
else
|
||||
@journal_paper.paper_title = "No Title Present"
|
||||
@journal_paper.paper_title = b[:title]
|
||||
end
|
||||
@journal_paper.year = b[:year]
|
||||
@journal_paper.note = b[:remarks]
|
||||
|
|
Loading…
Reference in New Issue