~tim/wuparty

e443fd3d3fcbafc91cae453d51eebaaf195d01e2 — Drew Delianides 7 years ago c3fee14
added option to include system fields to entries and count
1 files changed, 9 insertions(+), 0 deletions(-)

M lib/wuparty.rb
M lib/wuparty.rb => lib/wuparty.rb +9 -0
@@ 303,6 303,10 @@ class WuParty
        query[:pageStart] = 0
      end

      if options[:system]
        query[:system] = true
      end

      if options[:sort]
        field, direction = options[:sort].split(' ')
        query[:sort] = field


@@ 328,6 332,11 @@ class WuParty
          query["Filter#{ index + 1 }"] = filter.join(' ')
        end
      end   

      if options[:system]
        query[:system] = true
      end

      @party.get("forms/#{@id}/entries/count", :query => query)['EntryCount']
    end