Skip to content

Commit

Permalink
Fixed node id for policy after coming from an event
Browse files Browse the repository at this point in the history
Added fix to bug on conditions accord
  • Loading branch information
nimrodshn committed Jan 26, 2017
1 parent 2a1907c commit a5ecaee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/views/miq_policy/_condition_list.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
%tbody
- @conditions.each do |c|
%tr{:title => _("View this Condition"),
:onclick => "miqTreeActivateNode('condition_tree', 'xx-#{c.towhat.downcase}_co-#{to_cid(c.id)}');"}
:onclick => "miqTreeActivateNode('condition_tree', 'xx-#{c.towhat.camelize(:lower)}_co-#{to_cid(c.id)}');"}
%td.narrow
%i.product.product-miq_condition
%td
Expand Down
2 changes: 1 addition & 1 deletion app/views/miq_policy/_event_details.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
%table.table.table-striped.table-bordered.table-hover
%tbody
- @event_policies.each do |p|
- id = "xx-#{p.mode.downcase}_xx-#{p.mode.downcase}-#{p.towhat.downcase}_p-#{to_cid(p.id)}"
- id = "xx-#{p.mode.downcase}_xx-#{p.mode.downcase}-#{p.towhat.camelize(:lower)}_p-#{to_cid(p.id)}"
%tr{:title => _("Click to view Policy"),
:onclick => remote_function(:url => "/miq_policy/x_show/#{id}?accord=policy")}
%td.narrow
Expand Down

0 comments on commit a5ecaee

Please sign in to comment.