Skip to content

Commit

Permalink
[webui] Refactor package controller - show action
Browse files Browse the repository at this point in the history
  • Loading branch information
bgeuken committed Jul 16, 2015
1 parent e609094 commit 8b3e985
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/api/app/controllers/webui/package_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,9 @@ def show
load_buildresults
set_linking_packages
@expand = 1
@expand = begin Integer(params[:expand]) rescue 1 end if params[:expand]
if params[:expand]
@expand = params[:expand].to_i
end
@expand = 0 if @spider_bot
@is_current_rev = false
if set_file_details
Expand Down

0 comments on commit 8b3e985

Please sign in to comment.