Issue Bug Closed

#88422DocHeader.html (EXT:backend) and PageZero.html (EXT:tstemplate) contain logical and syntax errors

Claus Due 05/23/19, 12:44 updated 12/23/19, 22:49

Description

The following errors have been detected:

  • typo3/sysext/tstemplate/Resources/Private/Templates/PageZero.html

Has two conditions that contain: condition=”{f:count({variable})}” which is not valid; missing the argument name. Should be corrected to inline pass.

This one prevents the check for additional TS templates from working correctly.

  • sysext/backend/Resources/Private/Partials/DocHeader.html

Has a strange condition:

1. Check that menu is not empty (good)
2. Then check that menu is not empty again (bad)
3. If it isn’t empty, do something with menu (good)
4. If it IS empty, do something with menu (bad)

And due to the structure of conditions, contains invalid (X)HTML tag nesting. This one prevents one of the “else” cases from ever rendering and confuses markup validators.

Reviews 2