Skip to content

Commit

Permalink
Fixed enable/disable of Validate button.
Browse files Browse the repository at this point in the history
Styling changes in ManageIQ#2004 have caused `@edit[:new][:data]` value to be set to nil which disables Validate button on screen.

https://bugzilla.redhat.com/show_bug.cgi?id=1499881
  • Loading branch information
h-kataria committed Nov 13, 2017
1 parent 66266f4 commit 52d9336
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/miq_ae_class_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -898,6 +898,8 @@ def form_method_field_changed
elsif params[:cls_method_location] || params[:method_location]
# reset data if location is changed
''
else
@edit[:new][:data]
end
build_ae_tree(:ae_methods, :automate_tree)
@changed = (@edit[:new] != @edit[:current])
Expand Down

0 comments on commit 52d9336

Please sign in to comment.