Skip to content

Commit

Permalink
Make Save button respond properly on changes in NTP Servers section
Browse files Browse the repository at this point in the history
Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1749841

Make the button respond properly while editing an existing Zone.
  • Loading branch information
Hilda Stastna committed Sep 9, 2019
1 parent 6c58f52 commit e64c3d3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/controllers/ops_controller/settings/common.rb
Original file line number Diff line number Diff line change
Expand Up @@ -806,6 +806,8 @@ def settings_get_form_vars
field = "ntp_server_#{field_num}"
next unless params.key?(field)
@edit[:new][:ntp][field] = params[field]
# remove unnecessary key from @edit[:new][:ntp] if there is no change
@edit[:new][:ntp].except!(*field) if params[field] == @edit[:new][:ntp][:server][field_num - 1]
end
end

Expand Down

0 comments on commit e64c3d3

Please sign in to comment.