Project

General

Profile

Actions

Bug #88422

closed

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

Added by Claus Due over 5 years ago. Updated almost 5 years ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
-
Target version:
-
Start date:
2019-05-23
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
9
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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.

Actions

Also available in: Atom PDF