From 8097ada9aaec69f63592d7a2cdf4b6ad94b61d22 Mon Sep 17 00:00:00 2001 From: Allen Wight Date: Wed, 26 Oct 2016 11:14:20 -0400 Subject: [PATCH] Set default value of param visible to true for all dialog types https://bugzilla.redhat.com/show_bug.cgi?id=1388626 https://trello.com/c/TJKACsZb/37-https-bugzilla-redhat-com-show-bug-cgi-id-1388626 --- app/controllers/miq_ae_customization_controller/dialogs.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/controllers/miq_ae_customization_controller/dialogs.rb b/app/controllers/miq_ae_customization_controller/dialogs.rb index 9989e068f11..f41db83abf2 100644 --- a/app/controllers/miq_ae_customization_controller/dialogs.rb +++ b/app/controllers/miq_ae_customization_controller/dialogs.rb @@ -895,6 +895,9 @@ def dialog_get_form_vars_field # set default value - element type was added/changed if params[:field_typ] + # default values for all element types + @edit[:field_visible] = key[:visible] = true + # added TagControl - initialize values if params[:field_typ].include?("Tag") @edit[:field_category] = key[:category] = nil