Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix C# code generation for linkentities with OR root filter #927

Merged
merged 1 commit into from
Jul 8, 2023

Conversation

Suxsem
Copy link
Contributor

@Suxsem Suxsem commented Jun 30, 2023

Hi,

we have noticed that when a link entitiy has its root filter set to the OR type, despite the fetchxml being correct, the generated QueryExpress C# code is not. It does not create a new filterexpression and the default one is of type AND.

This PR fixes the issue by appling the same logic used for OwnersType.Sub also for ownerType == OwnersType.Link (only when filter is of type OR and there is at least one condition).

The following screenshot shows the generated code before and after the fix:

image

image

@rappen rappen merged commit 252f2c9 into rappen:master Jul 8, 2023
@rappen
Copy link
Owner

rappen commented Jul 8, 2023

Thanks! Great finding the issue and resolving it 😊🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants