Skip to content

Commit c8dd609

Browse files
committed
Added ApexClass and Attachment to the CurrencyIsoCode Override
Added ApexClass and Attachment to the CurrencyIsoCode Override. These classes do not have CurrencyIsoCode field
1 parent 84ae1b0 commit c8dd609

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)