Skip to content

Commit

Permalink
Fix tagging Instances and Network Ports
Browse files Browse the repository at this point in the history
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1539584

Fix tagging Instances/Network Ports from the list of Instances/Network Ports,
accessed through Networks -> Security Groups, opening some security group and
clicking on Instances/Network Ports under Relationships table.
  • Loading branch information
hstastna committed Feb 6, 2018
1 parent 9af67d3 commit e282fca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/controllers/security_group_controller.rb
Expand Up @@ -23,9 +23,13 @@ def button
@refresh_div = "main_div"

case params[:pressed]
when "instance_tag"
return tag("VmOrTemplate")
when "network_port_tag"
return tag("NetworkPort")
when "security_group_tag"
return tag("SecurityGroup")
when 'security_group_delete'
when "security_group_delete"
delete_security_groups
when "security_group_edit"
javascript_redirect :action => "edit", :id => checked_item_id(params)
Expand Down

0 comments on commit e282fca

Please sign in to comment.