Updated import data controller to check for blank user_id
This commit is contained in:
parent
d2a07d9ffb
commit
e4514a353a
|
@ -50,6 +50,8 @@ class Admin::ImportDataController < OrbitBackendController
|
|||
@teacher.user_id = hash['teacher_en']
|
||||
elsif hash['teacher_en'].blank?
|
||||
@teacher.user_id = hash['teacher_zh_tw']
|
||||
else
|
||||
@teacher.user_id = "Please Enter a User Name"
|
||||
end
|
||||
@teacher.save!
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue