Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #12 from delianides/master

Added option to include system fields
  • Loading branch information...
commit 13e39de314ad3d88427b86df79b778ac72a2f682 2 parents a941b88 + e443fd3
@seven1m authored
Showing with 9 additions and 0 deletions.
  1. +9 −0 lib/wuparty.rb
View
9 lib/wuparty.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.