Skip to content

Commit

Permalink
Added ApexClass and Attachment to the CurrencyIsoCode Override
Browse files Browse the repository at this point in the history
Added ApexClass and Attachment to the CurrencyIsoCode Override.  These classes do not have CurrencyIsoCode field
  • Loading branch information
ImJohnMDaniel committed May 18, 2015
1 parent 84ae1b0 commit c8dd609
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions fflib/src/classes/fflib_SObjectSelector.cls
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,9 @@ 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()
, ApexClass.SObjectType.getDescribe().getName()
, Attachment.SObjectType.getDescribe().getName() };

/**
* Should this selector automatically include the FieldSet fields when building queries?
Expand Down Expand Up @@ -391,4 +393,4 @@ public abstract with sharing class fflib_SObjectSelector

return queryFactory;
}
}
}

0 comments on commit c8dd609

Please sign in to comment.