aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZog2018-05-21 12:48:11 +0200
committerZog2018-05-21 12:48:11 +0200
commit3b134ab95088f1753b1cc39c24682c69e62ae1f4 (patch)
treeaa68268f98316b1663cd9339c512e727a79b35ec
parent408b9f70f2dda294d30d7f1e4c524cafe85af06a (diff)
downloadchouette-core-3b134ab95088f1753b1cc39c24682c69e62ae1f4.tar.bz2
Refs #7101; Fix filters
-rw-r--r--app/views/compliance_control_sets/_filters.html.slim2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/compliance_control_sets/_filters.html.slim b/app/views/compliance_control_sets/_filters.html.slim
index b9bfed2be..436d61815 100644
--- a/app/views/compliance_control_sets/_filters.html.slim
+++ b/app/views/compliance_control_sets/_filters.html.slim
@@ -19,7 +19,7 @@
.form-group.togglable class=filter_item_class(params[:q], :assigned_to_slots)
= f.label ComplianceControlSet.tmf(:assigned_to), required: false, class: 'control-label'
- = f.input :assigned_to_slots, collection: Workgroup.compliance_control_sets_by_workgroup.update(Workgroup.compliance_control_sets_by_workbench).to_a, as: :check_boxes, value_method: :first, label: false, label_method: lambda {|w| ("<span>#{w.last}</span>").html_safe}, required: false, wrapper_html: {class: 'checkbox_list'}, checked: params[:q].try(:[], :assigned_to_slots)
+ = f.input :assigned_to_slots, collection: Workgroup.compliance_control_sets_by_workgroup.update(Workgroup.compliance_control_sets_by_workbench).to_a, as: :check_boxes, value_method: :first, label: false, label_method: lambda {|w| ("<span>#{w.last}</span>").html_safe}, required: false, wrapper_html: {class: 'checkbox_list'}, checked: ->(val){params[:q].try(:[], :assigned_to_slots).try(:include?, val.first.to_s)}
.actions
= link_to t('actions.erase'), @compliance_control_set, class: 'btn btn-link'