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