From 9684831ac650d633ddfab1062e2285f9482b1157 Mon Sep 17 00:00:00 2001 From: Alban Peignier Date: Wed, 9 May 2018 15:15:05 +0200 Subject: Rewrite compliance_control_sets associated to workbench or workgroup edits and imports. Refs #6960 --- app/controllers/workbenches_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/controllers/workbenches_controller.rb') diff --git a/app/controllers/workbenches_controller.rb b/app/controllers/workbenches_controller.rb index cecd071d8..1432518dc 100644 --- a/app/controllers/workbenches_controller.rb +++ b/app/controllers/workbenches_controller.rb @@ -42,7 +42,7 @@ class WorkbenchesController < ChouetteController private def workbench_params - params.require(:workbench).permit(owner_compliance_control_set_ids: @workbench.workgroup.available_compliance_control_sets.keys) + params.require(:workbench).permit(owner_compliance_control_set_ids: @workbench.workgroup.compliance_control_sets_by_workbench.keys) end def resource -- cgit v1.2.3