Skip to content

Commit

Permalink
[webui] Small cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Jul 27, 2015
1 parent cb1df0a commit 7e7b6f0
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/api/app/controllers/webui/patchinfo_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,9 @@ def save
]
end
node = Builder::XmlMarkup.new(indent: 2)
attrs = {}
attrs[:incident] = @package.project.name.gsub(/.*:/, '')
attrs = {
:incident => @package.project.name.gsub(/.*:/, '')
}
xml = node.patchinfo(attrs) do |n|
params[:selected_binaries].to_a.each do |binary|
if !binary.blank?
Expand Down

0 comments on commit 7e7b6f0

Please sign in to comment.