From c8dd60959de24bfc5bf2794897a5dee4072a38da Mon Sep 17 00:00:00 2001 From: "John M. Daniel" Date: Mon, 18 May 2015 18:12:13 -0400 Subject: [PATCH] Added ApexClass and Attachment to the CurrencyIsoCode Override Added ApexClass and Attachment to the CurrencyIsoCode Override. These classes do not have CurrencyIsoCode field --- fflib/src/classes/fflib_SObjectSelector.cls | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/fflib/src/classes/fflib_SObjectSelector.cls b/fflib/src/classes/fflib_SObjectSelector.cls index 3eb86874087..b38b844dbee 100644 --- a/fflib/src/classes/fflib_SObjectSelector.cls +++ b/fflib/src/classes/fflib_SObjectSelector.cls @@ -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 STANDARD_WITHOUT_CURRENCYISO = new Set { 'AsyncApexJob' }; + private static Set STANDARD_WITHOUT_CURRENCYISO = new Set { AsyncApexJob.SObjectType.getDescribe().getName() + , ApexClass.SObjectType.getDescribe().getName() + , Attachment.SObjectType.getDescribe().getName() }; /** * Should this selector automatically include the FieldSet fields when building queries? @@ -391,4 +393,4 @@ public abstract with sharing class fflib_SObjectSelector return queryFactory; } -} \ No newline at end of file +}