Skip to content

Commit

Permalink
include trasfterred or canceled registrations in the attendee list
Browse files Browse the repository at this point in the history
  • Loading branch information
ij committed Oct 7, 2014
1 parent 46ac4b2 commit a405ae0
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 @@ -133,7 +133,7 @@ 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"
where = "code__c = \'#{reg_item_code}\' and #{rr}.event_code__c = \'#{event_code}\' and #{rr}.status__c = 'processed'"
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?
end
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.15"
VERSION = "0.1.16"
end

0 comments on commit a405ae0

Please sign in to comment.