Revision d5f2f1de
Added by Amir Fefer almost 6 years ago
app/controllers/api/v2/hosts_controller.rb | ||
---|---|---|
@hosts = action_scope_for(:index, resource_scope_for_index)
|
||
|
||
if params[:thin]
|
||
@subtotal = @hosts.total_entries
|
||
@hosts = @hosts.reorder(:name).distinct.pluck(:id, :name)
|
||
render 'thin'
|
||
return
|
Also available in: Unified diff
Fixes #23599 - fix subtotal value in API call with thin=true