diff options
| author | Alban Peignier | 2018-05-09 15:15:05 +0200 | 
|---|---|---|
| committer | Alban Peignier | 2018-05-09 15:15:05 +0200 | 
| commit | 9684831ac650d633ddfab1062e2285f9482b1157 (patch) | |
| tree | 7e4b30940d05db3ebcdd12d7daf9877f803880cf /app/controllers/workgroups_controller.rb | |
| parent | 64933b6903583b585f7de5bc391a9ab2ade1c6a7 (diff) | |
| download | chouette-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.rb | 2 | 
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 | 
