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

Only add a SQL in statement if there are keys to filter on #16044

Merged
merged 2 commits into from
Apr 15, 2024

Conversation

Migaroez
Copy link
Contributor

Description

Calling TemplateService.GetAll any keys in the array results in a sql error.
(backoffice usecase: template selection on a doctype with template)

Since this is a params object we can not supply null, so we check versus any

@Migaroez Migaroez requested a review from bergmania April 12, 2024 10:38
src/Umbraco.Core/Services/TemplateService.cs Outdated Show resolved Hide resolved
@bergmania bergmania merged commit 767c417 into v14/dev Apr 15, 2024
16 checks passed
@bergmania bergmania deleted the v14/fix/template-query branch April 15, 2024 06:55
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