File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ public class fflib_QueryFactory { //No explicit sharing declaration - inherit fr
9090 private QueryField getFieldToken (String fieldName ){
9191 QueryField result ;
9292 if (! fieldName .contains (' .' )){ // single field
93- Schema .SObjectField token = fflib_SObjectDescribe .getDescribe (table ).getField (fieldName );
93+ Schema .SObjectField token = fflib_SObjectDescribe .getDescribe (table ).getField (fieldName . toLowerCase () );
9494 if (token == null )
9595 throw new InvalidFieldException (fieldName ,this .table );
9696 if (enforceFLS )
@@ -102,7 +102,7 @@ public class fflib_QueryFactory { //No explicit sharing declaration - inherit fr
102102 Iterator <String > i = fieldName .split (' \\ .' ).iterator ();
103103 while (i .hasNext ()){
104104 String field = i .next ();
105- Schema .SObjectField token = fflib_SObjectDescribe .getDescribe (lastSObjectType ).getField (field );
105+ Schema .SObjectField token = fflib_SObjectDescribe .getDescribe (lastSObjectType ).getField (field . toLowerCase () );
106106 if (token != null && enforceFLS )
107107 fflib_SecurityUtils .checkFieldIsReadable (lastSObjectType , token );
108108 if (token != null && i .hasNext () && token .getDescribe ().getSOAPType () == Schema .SOAPType .ID ){
You can’t perform that action at this time.
0 commit comments