17119: bugfix: when "count: none" is specified, the group/contents
[arvados.git] / services / api / app / controllers / arvados / v1 / groups_controller.rb
index 6498b7a512cce5329a3967692e808e0b1e97b7ef..5388e8ffbb6552608ac461ccd51fdd8259769e6d 100644 (file)
@@ -127,9 +127,11 @@ class Arvados::V1::GroupsController < ApplicationController
       :self_link => "",
       :offset => @offset,
       :limit => @limit,
-      :items_available => @items_available,
       :items => @objects.as_api_response(nil)
     }
+    if params[:count] != 'none'
+      list[:items_available] = @items_available
+    end
     if @extra_included
       list[:included] = @extra_included.as_api_response(nil, {select: @select})
     end