Skip to content

Commit

Permalink
added derviced organization name
Browse files Browse the repository at this point in the history
  • Loading branch information
ij committed Dec 15, 2014
1 parent aa08408 commit 1062ace
Showing 1 changed file with 1 addition and 1 deletion.
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, #{rr}.status__c"
selects = "#{rr}.Id, #{rr}.email__c, #{rr}.last_name__c, #{rr}.first_name__c, #{rr}.account_id__r.Name, #{rr}.derived_organization_name__c, #{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

0 comments on commit 1062ace

Please sign in to comment.