Skip to content

Commit

Permalink
[webui] fixing requests loading for projects
Browse files Browse the repository at this point in the history
This seems to be only called for maintenance (and we have no test cases for that ;(
  • Loading branch information
coolo committed Nov 16, 2012
1 parent 9e91d9d commit c6ef961
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/webui/app/models/project.rb
Original file line number Diff line number Diff line change
Expand Up @@ -552,14 +552,10 @@ def is_locked?
end

def requests(opts)
# TODO: find out where it's called
# called for the incidents requests
opts = {:project => self.name}.merge opts
reqs = BsRequest.list_ids(opts)
ret = []
reqs.each_slice(40) do |ids|
ret << BsRequest.ids(ids)
end
return ret
return BsRequest.ids(ids)
end

def buildresults(view = 'summary')
Expand Down

0 comments on commit c6ef961

Please sign in to comment.