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 aggregate function returns incorrect results (LTR backport) #59085

Merged
merged 3 commits into from
Oct 16, 2024

Conversation

nyalldawson
Copy link
Collaborator

Manual backport of #59000

When the aggregate uses variables, we need to ensure that the
cache key correctly considers the current value of ALL those
variables. Otherwise we'll return incorrect results when
an expression is re-evaluated after changing the variable
value for the context.

Fixes use of aggregate function with @symbol_label in legends.

Fixes qgis#58221

(cherry picked from commit 7b88103)
(cherry picked from commit f618993)
@nyalldawson nyalldawson added the Backport Is a backport of another pull request label Oct 15, 2024
@github-actions github-actions bot added this to the 3.40.0 milestone Oct 15, 2024
@nyalldawson nyalldawson reopened this Oct 16, 2024
@troopa81 troopa81 merged commit 50404e1 into qgis:queued_ltr_backports Oct 16, 2024
58 of 59 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport Is a backport of another pull request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants