diff options
| author | Simon Charette <charette.s@gmail.com> | 2024-12-23 05:00:04 +0100 |
|---|---|---|
| committer | Sarah Boyce <42296566+sarahboyce@users.noreply.github.com> | 2025-02-06 17:00:31 +0100 |
| commit | d99985bbc121749c5a6bb9eb9a4a9099b6a002eb (patch) | |
| tree | 40e36ec7c6c73d13015354e1b9c28fe71d757168 /docs/ref/forms | |
| parent | b96e4c04b666b1044555d7a32f64e83cbad57b03 (diff) | |
[5.2.x] Fixed #36025 -- Fixed re-aliasing of iterable (in/range) lookups rhs.
In order for Expression.relabeled_clone to work appropriately its
get_source_expressions method must return all resolvable which wasn't the case
for Lookup when its right-hand-side is "direct" (not a compilable).
While refs #22288 added support for non-literals iterable right-hand-side
lookups it predated the subclassing of Lookup(Expression) refs #27021 which
could have been an opportunity to ensure right-hand-sides are always resolvable
(ValueList and ExpressionList).
Addressing all edge case with non-resolvable right-hand-sides would require
a significant refactor and deprecation of some parts of the Lookup interface so
this patch only focuses on FieldGetDbPrepValueIterableMixin (In and Range
lookups) by making sure that a right-hand-side containing resolvables are dealt
with appropriately during the resolving phase.
Thanks Aashay Amballi for the report.
Backport of 089deb82b9ac2d002af36fd36f288368cdac4b53 from main.
Diffstat (limited to 'docs/ref/forms')
0 files changed, 0 insertions, 0 deletions
