Closed goldsky closed 4 years ago
@bezumkin Do you have an idea, what could happen here?
@Jako Problem is here
This expression couldn't handle nested conditions. Here what is happening:
I can't fix it and, frankly, I don't use anything like this because of Fenom.
I will give it a try in the upcoming days 👍
I am not sure if this is related, but how about changing the MODX's parsing order for nested tags, from inner outwards to outer inwards?
That means, the logic condition should start from the first tag and stop immediately once it meets the condition, without going further into the deeper nested tag(s).
@goldsky MODX parser always process tags inside out. Changing this will brake everything.
Yeah, I know that irony. It shouldn't be at the first place.
I submitted a PR to fix this issue. Feel free to test the changes and provide feedback.
Fixed #14458 @goldsky Thanks @modxbot close
Summary
Related issue: https://github.com/modxcms/revolution/issues/13250 . Parser fails to process nested output filters, and returns truncated tags.
Step to reproduce
Create a chunk called 'rowChunk' with this content:
Then use the chunk as this:
Try with
&id=`3`
Observed behavior
It returns
Expected behavior
It should return the defined value.
Environment
MODX 2.6.5-pl