Skip to content

Commit

Permalink
Add control that @group has id otherwise set it to new
Browse files Browse the repository at this point in the history
  • Loading branch information
ZitaNemeckova committed May 16, 2017
1 parent 80f832f commit ea6b70b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/ops/rbac_group/_hosts_clusters.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
:tree_name => "hac_tree",
:bs_tree => @hac_tree,
:oncheck => @edit.nil? ? nil : "miqOnCheckUserFilters",
:check_url => "/ops/rbac_group_field_changed/#{@group.present? ? @group.id : "new"}___",
:check_url => "/ops/rbac_group_field_changed/#{(@group.present? && @group.id.present?) ? @group.id : "new"}___",
:highlight_changes => true,
:checkboxes => true})
2 changes: 1 addition & 1 deletion app/views/ops/rbac_group/_vms_templates.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
:tree_name => "vat_tree",
:bs_tree => @vat_tree,
:oncheck => @edit.nil? ? nil : "miqOnCheckUserFilters",
:check_url => "/ops/rbac_group_field_changed/#{@group.present? ? @group.id : "new"}___",
:check_url => "/ops/rbac_group_field_changed/#{(@group.present? && @group.id.present?) ? @group.id : "new"}___",
:highlight_changes => true,
:checkboxes => true})

0 comments on commit ea6b70b

Please sign in to comment.