Skip to content

Commit

Permalink
Fix for issue deploying trigger in Multi Currency orgs
Browse files Browse the repository at this point in the history
  • Loading branch information
afawcettffdc committed Jul 11, 2015
1 parent 0dc0aa1 commit 3fb5d96
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/classes/fflib_SObjectSelector.cls
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@ public abstract with sharing class fflib_SObjectSelector
/**
* This overrides the Multi Currency handling, preventing it from injecting the CurrencyIsoCode fie ld for certain System objects that don't ever support it
**/
private static Set<String> STANDARD_WITHOUT_CURRENCYISO = new Set<String> { 'AsyncApexJob' };
private static Set<String> STANDARD_WITHOUT_CURRENCYISO = new Set<String> { AsyncApexJob.SObjectType.getDescribe().getName()
, ApexTrigger.SObjectType.getDescribe().getName()
, ApexClass.SObjectType.getDescribe().getName()
, Attachment.SObjectType.getDescribe().getName()
, RecordType.SObjectType.getDescribe().getName() };

/**
* Should this selector automatically include the FieldSet fields when building queries?
Expand Down

0 comments on commit 3fb5d96

Please sign in to comment.