Skip to content

Commit 93faafd

Browse files
committed
Merge pull request apex-enterprise-patterns#44 from ImJohnMDaniel/master
CurrencyIsoCode Override update
2 parents cf2126f + c8dd609 commit 93faafd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

fflib/src/classes/fflib_SObjectSelector.cls

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,9 @@ public abstract with sharing class fflib_SObjectSelector
3333
/**
3434
* This overrides the Multi Currency handling, preventing it from injecting the CurrencyIsoCode fie ld for certain System objects that don't ever support it
3535
**/
36-
private static Set<String> STANDARD_WITHOUT_CURRENCYISO = new Set<String> { 'AsyncApexJob' };
36+
private static Set<String> STANDARD_WITHOUT_CURRENCYISO = new Set<String> { AsyncApexJob.SObjectType.getDescribe().getName()
37+
, ApexClass.SObjectType.getDescribe().getName()
38+
, Attachment.SObjectType.getDescribe().getName() };
3739

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

392394
return queryFactory;
393395
}
394-
}
396+
}

0 commit comments

Comments
 (0)