Skip to content

Commit

Permalink
added registration.status__c in the attendee list query
Browse files Browse the repository at this point in the history
  • Loading branch information
ij committed Oct 9, 2014
1 parent a405ae0 commit aa08408
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/sf/reg_registration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def self.where(args = {})
def self.attendees_for(event_code, reg_item_code)
return if event_code.nil? or reg_item_code.nil?
rr = 'reg_registration_id__r'
selects = "#{rr}.Id, #{rr}.email__c, #{rr}.last_name__c, #{rr}.first_name__c, #{rr}.account_id__r.Name, #{rr}.title__c, #{rr}.roster_private__c, #{rr}.LastModifiedDate, #{rr}.CreatedDate"
selects = "#{rr}.Id, #{rr}.email__c, #{rr}.last_name__c, #{rr}.first_name__c, #{rr}.account_id__r.Name, #{rr}.title__c, #{rr}.roster_private__c, #{rr}.LastModifiedDate, #{rr}.CreatedDate, #{rr}.status__c"
where = "code__c = \'#{reg_item_code}\' and #{rr}.event_code__c = \'#{event_code}\'"
sobjects = Sf.client.query("select #{selects} from RegItem__c where #{where}")
build_collection sobjects.map(&:reg_registration_id__r) unless sobjects.blank?
Expand Down
2 changes: 1 addition & 1 deletion lib/sf/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Sf
VERSION = "0.1.16"
VERSION = "0.1.17"
end

0 comments on commit aa08408

Please sign in to comment.