Skip to content

Commit

Permalink
Merge pull request #44 from ImJohnMDaniel/master
Browse files Browse the repository at this point in the history
CurrencyIsoCode Override update
  • Loading branch information
afawcett committed May 21, 2015
2 parents cf2126f + c8dd609 commit 93faafd
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 93faafd

Please sign in to comment.