Skip to content

Commit

Permalink
[api] fix case of new package requests
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Nov 7, 2012
1 parent a4a3470 commit 4f2e507
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/api/app/models/bs_request_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -351,8 +351,7 @@ def webui_infos
sd = "<diffs>" + sd + "</diffs>"
Xmlhash.parse(sd).elements('sourcediff').each do |sourcediff|

sourcediff.elements('files').each do |file|
file = file.get('file')
sourcediff.get('files').elements('file') do |file|
if file['new']
filename = file['new']['name']
else # in case of deleted files
Expand Down

0 comments on commit 4f2e507

Please sign in to comment.