Skip to content

Commit

Permalink
Set default value of param visible to true for all dialog types
Browse files Browse the repository at this point in the history
  • Loading branch information
AllenBW committed Oct 26, 2016
1 parent 3f63dbb commit 8097ada
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/miq_ae_customization_controller/dialogs.rb
Expand Up @@ -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
Expand Down

0 comments on commit 8097ada

Please sign in to comment.