Skip to content

Commit

Permalink
[webui] Fix preserving package elements
Browse files Browse the repository at this point in the history
Fix preserving package elements after editing a patchinfo.

Co-authored-by: David Kang <dkang@suse.com>
  • Loading branch information
eduardoj and David Kang committed Jun 5, 2018
1 parent 1a1814d commit 6470562
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/api/app/controllers/webui/patchinfo_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ def save
node.rating params[:rating].try(:strip)
node.summary params[:summary].try(:strip)
node.description params[:description].gsub("\r\n", "\n")
@file.each(:package) do |pkg|
node.package pkg.text
end
node.message params[:message].gsub("\r\n", "\n") if params[:message].present?
node.reboot_needed if params[:reboot]
node.relogin_needed if params[:relogin]
Expand Down

0 comments on commit 6470562

Please sign in to comment.