Skip to content

Commit

Permalink
Merge pull request #256 from nimrodshn/event_page_broken_link_bug
Browse files Browse the repository at this point in the history
Fixed node id for policy after coming from an event
  • Loading branch information
mzazrivec authored Jan 27, 2017
2 parents 4534348 + a5ecaee commit fc53af6
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 fc53af6

Please sign in to comment.