From 888186404c2f04c09e2bf2c4c3365464cc518baf Mon Sep 17 00:00:00 2001 From: Bomrah Harry Date: Wed, 18 Jul 2018 17:42:16 +0800 Subject: [PATCH] small fix for update profile --- app/controllers/recruitments_controller.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/controllers/recruitments_controller.rb b/app/controllers/recruitments_controller.rb index efce19c..1c347f2 100644 --- a/app/controllers/recruitments_controller.rb +++ b/app/controllers/recruitments_controller.rb @@ -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