aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/workgroups_controller.rb
diff options
context:
space:
mode:
authorAlban Peignier2018-05-09 15:15:05 +0200
committerAlban Peignier2018-05-09 15:15:05 +0200
commit9684831ac650d633ddfab1062e2285f9482b1157 (patch)
tree7e4b30940d05db3ebcdd12d7daf9877f803880cf /app/controllers/workgroups_controller.rb
parent64933b6903583b585f7de5bc391a9ab2ade1c6a7 (diff)
downloadchouette-core-9684831ac650d633ddfab1062e2285f9482b1157.tar.bz2
Rewrite compliance_control_sets associated to workbench or workgroup edits and imports. Refs #6960
Diffstat (limited to 'app/controllers/workgroups_controller.rb')
-rw-r--r--app/controllers/workgroups_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/workgroups_controller.rb b/app/controllers/workgroups_controller.rb
index 5d422380c..70aa89cf9 100644
--- a/app/controllers/workgroups_controller.rb
+++ b/app/controllers/workgroups_controller.rb
@@ -8,6 +8,6 @@ class WorkgroupsController < ChouetteController
end
def workgroup_params
- params[:workgroup].permit(workbenches_attributes: [:id, owner_compliance_control_set_ids: @workgroup.available_compliance_control_sets.keys])
+ params[:workgroup].permit(workbenches_attributes: [:id, owner_compliance_control_set_ids: @workgroup.compliance_control_sets_by_workgroup.keys])
end
end