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