From 13b5558fc23c56a67394a6968aa4069f33a31b0b Mon Sep 17 00:00:00 2001 From: Chonlasith Jucksriporn Date: Mon, 21 Oct 2024 17:31:34 +0700 Subject: [PATCH] fix: Save form --- cdmm/app/controllers/cdmm_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cdmm/app/controllers/cdmm_controller.rb b/cdmm/app/controllers/cdmm_controller.rb index 01a58b4..b0d3892 100644 --- a/cdmm/app/controllers/cdmm_controller.rb +++ b/cdmm/app/controllers/cdmm_controller.rb @@ -14,7 +14,7 @@ def show() def save() form_key = params[:form_key] - if form_key == "" + unless params[:form_key] or params[:form_key].present? form_key = generate_unique_form_key ev = Evaluation.new(evaluation_params.merge(form_key: form_key)) else