From 93a123f25a82c6df0f8713a7b2acc90ab758c59b Mon Sep 17 00:00:00 2001 From: p31729568 Date: Thu, 26 Sep 2019 14:51:36 +0800 Subject: [PATCH] fix --- .../ecs/requirement_support_objectives_controller.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/controllers/ecs/requirement_support_objectives_controller.rb b/app/controllers/ecs/requirement_support_objectives_controller.rb index 2fe8cc338..d06dbe568 100644 --- a/app/controllers/ecs/requirement_support_objectives_controller.rb +++ b/app/controllers/ecs/requirement_support_objectives_controller.rb @@ -36,12 +36,12 @@ class Ecs::RequirementSupportObjectivesController < Ecs::BaseController private def check_record_exists! - unless current_year.ec_graduation_requirements.exists?(id: params[:graduation_requirement_id]) + unless current_year.ec_graduation_requirements.exists?(id: params[:ec_graduation_requirement_id]) render_not_found return end - unless current_year.ec_training_subitems.exists?(id: params[:training_subitem_id]) + unless current_year.ec_training_subitems.exists?(id: params[:ec_training_subitem_id]) render_not_found return end