Permalink
Browse files

Merge pull request #12 from delianides/master

Added option to include system fields
  • Loading branch information...
2 parents a941b88 + e443fd3 commit 13e39de314ad3d88427b86df79b778ac72a2f682 @seven1m committed Mar 19, 2013
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/wuparty.rb
View
@@ -303,6 +303,10 @@ def entries(options={})
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 @@ def count(options={})
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

0 comments on commit 13e39de

Please sign in to comment.