@ -48,6 +48,8 @@ class Ecs::RequirementSupportObjectivesController < Ecs::BaseController
end
def permit_params
params.require(%i[ec_graduation_requirement_id ec_training_subitem_id])
hash = params.permit(%i[ec_graduation_requirement_id ec_training_subitem_id])
hash[:ec_training_objective_id] = hash.delete(:ec_training_subitem_id)
hash