small fix for update profile

This commit is contained in:
Bomrah Harry 2018-07-18 17:42:16 +08:00
parent 00720937ea
commit 888186404c
1 changed files with 3 additions and 3 deletions

View File

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