- Issue created by @andyg5000
- Status changed to Needs review
over 1 year ago 5:36pm 7 September 2023 - last update
over 1 year ago 544 pass - πΊπΈUnited States andyg5000 North Carolina, USA
I've uncovered an interesting "bug" or misunderstanding in PHP with my first patch (https://twitter.com/AndyG5000/status/1699833476701450692)
Passing items by reference in a foreach loop are incorrectly read when looping again with the same variable name,
- last update
about 1 year ago 544 pass - π¦πΉAustria drunken monkey Vienna, Austria
Thanks for reporting this problem and already supplying a patch to fix it!
The location for the fix looks pretty good, and just using the field type to decide whether we use the entity ID or label also makes sense to me. I donβt think this needs to be any more complicated than that (for now, until someone finds other scenarios that donβt work). Please see/test/review the attached patch revision.However, what this definitely still needs is a regression test that demonstrates the problem and that verifies that this patch resolves it. Would you be able to add such a test to
AggregatedFieldTest
? - Status changed to Needs work
about 1 year ago 11:37am 7 October 2023