small fix for update profile
This commit is contained in:
parent
00720937ea
commit
888186404c
|
@ -441,11 +441,11 @@ class RecruitmentsController < PseudoSessionController
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_academic
|
def create_academic
|
||||||
if params[:commit] == "Add"
|
if params[:commit] == "Add" || params[:commit] == "儲存"
|
||||||
academic = EmployeeAcademic.create(employee_academic_params)
|
academic = EmployeeAcademic.create(employee_academic_params)
|
||||||
redirect_to employee_academics_path
|
redirect_to employee_academics_path
|
||||||
elsif params[:commit] = "Next"
|
elsif params[:commit] = "Next" || params[:commit] == "下一個"
|
||||||
if params[:employee_academic][:degree_name].present?
|
if params[:employee_academic][:degree_name_translations].present?
|
||||||
academic = EmployeeAcademic.create(employee_academic_params)
|
academic = EmployeeAcademic.create(employee_academic_params)
|
||||||
end
|
end
|
||||||
redirect_to employee_portfolio_path
|
redirect_to employee_portfolio_path
|
||||||
|
|
Loading…
Reference in New Issue