Updated import data controller to import data correctly

This commit is contained in:
saurabhbhatia 2013-09-11 13:49:38 +08:00
parent c8be884291
commit f16d1908be
1 changed files with 2 additions and 2 deletions

View File

@ -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]