Skip to content

Commit

Permalink
Fixed bug with the query factory not recognising an empty criteria wh…
Browse files Browse the repository at this point in the history
…en deciding if where clause should be added
  • Loading branch information
rob-baillie-ortoo committed Dec 16, 2021
1 parent 6343a26 commit 8b15261
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -660,7 +660,7 @@ public class fflib_QueryFactory { //No explicit sharing declaration - inherit fr
}
}
result += ' FROM ' + (relationship != null ? relationship.getRelationshipName() : table.getDescribe().getName());
if(conditionExpression != null)
if( String.isNotBlank( conditionExpression ) )
result += ' WHERE '+conditionExpression;

if(order.size() > 0){
Expand Down

0 comments on commit 8b15261

Please sign in to comment.