Skip to content

Commit

Permalink
Merge pull request #798 from bcgov/fix/nestedfix
Browse files Browse the repository at this point in the history
ECER-3915: Nested objects empty key problem fixed
  • Loading branch information
farzadnadiri authored Jan 2, 2025
2 parents a7128df + dba1517 commit f9513c0
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ public override IEnumerable<TEntity> Execute()

protected virtual EntityCollection QuerySubEntities(string entityName, string keyAttributeName, params Guid[] keys)
{
if (keys == null || keys.Length == 0)
{
return new EntityCollection();
}

var query = new QueryExpression(entityName)
{
Criteria = new FilterExpression(LogicalOperator.Or)
Expand Down

0 comments on commit f9513c0

Please sign in to comment.