Skip to content

Commit

Permalink
Merge pull request #5113 from himdel/ownership-images-master
Browse files Browse the repository at this point in the history
set_ownership - use miq_template (not vm) for images
  • Loading branch information
mzazrivec authored Jan 2, 2019
2 parents 807c7f5 + 76ce520 commit ea3e817
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/mixins/actions/vm_actions/ownership.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def ownership_form_fields
def set_ownership
assert_privileges(params[:pressed])
# check to see if coming from show_list or drilled into vms from another CI
controller = if request.parameters[:controller] == "vm" || %w(all_vms vms instances images).include?(params[:display])
controller = if request.parameters[:controller] == "vm" || %w(all_vms vms instances).include?(params[:display])
"vm"
elsif %w(miq_templates images).include?(params[:display]) || params[:pressed].starts_with?("miq_template_")
"miq_template"
Expand Down

0 comments on commit ea3e817

Please sign in to comment.