Skip to content

Parser errors introduced in MODX 3.2.0 #16942

@frischnetz

Description

@frischnetz

Bug report

Summary

Nesting in conjunction with output modifiers breaks in MODX3.2.0 in cases that worked in 2.8.8

Step to reproduce

This is an example to create a filtering statement only in case the placeholder [[+filter]] is not empty:

[[+filter:isnot=``:then=`
  &tvFilters=`news-kategorie==%[[+filter:commaToString=`%||news-kategorie==%`]]%`
`]]

Observed behavior

The plain content of the placeholder was printed:
Pressemitteilung

Expected behavior

The expected output should be:

&tvFilters=`news-kategorie==%Pressemitteilung%`

This was also the observed output in MODX 2.8.8

Environment

MODX 3.2.0, PHP 8.4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugThe issue in the code or project, which should be addressed.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions