Skip to content

Commit

Permalink
[webui] Update foramtting of conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Jul 27, 2015
1 parent 40d2393 commit cb1df0a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/api/app/controllers/webui/patchinfo_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -147,15 +147,9 @@ def save
node.rating params[:rating]
node.summary params[:summary]
node.description params[:description].gsub("\r\n", "\n")
if params[:reboot]
node.reboot_needed
end
if params[:relogin]
node.relogin_needed
end
if params[:zypp_restart_needed]
node.zypp_restart_needed
end
node.reboot_needed if params[:reboot]
node.relogin_needed if params[:relogin]
node.zypp_restart_needed if params[:zypp_restart_needed]
if params[:block] == 'true'
node.stopped params[:block_reason]
end
Expand Down

0 comments on commit cb1df0a

Please sign in to comment.