Issue Bug Closed

#91747frontend based TS conditions throw warning in Backend

S P 07/06/20, 10:55 updated 06/05/24, 21:28

Description

For example this:
@[123 in frontend.user.userGroupList]@

This adds the following log entry on every action done in the backend:

Core: Error handler (BE): PHP Warning: in_array() expects parameter 2 to be array, string given in .../vendor/symfony/expression-language/Node/BinaryNode.php line 100

Because frontend.user.userGroupList does not exist in BE context (because frontend does not exist in BE, obviously). The condition is working in FE and when simulating it in the template module! Its justs literally spams the log module.

Having this on 9.5.19. Flagged as regression, because on v8 such conditions (with old syntax) worked without error.

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.