Actions
Bug #96377
closedUndefined array key "linkWrap" in TextMenuContentObject if ATagBeforeWrap=1
Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2021-12-17
Due date:
% Done:
100%
Estimated time:
TYPO3 Version:
11
PHP Version:
8.0
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
There's an undefined array key "linkWrap" in \TYPO3\CMS\Frontend\ContentObject\Menu\TextMenuContentObject::writeMenu() in the case of ATagBeforeWrap (first case):
if ($this->I['val']['ATagBeforeWrap'] ?? false) { $wrapPartsBefore = explode('|', $this->I['val']['linkWrap']); $wrapPartsAfter = ['', '']; } else { $wrapPartsBefore = ['', '']; $wrapPartsAfter = explode('|', $this->I['val']['linkWrap'] ?? ''); }
Normally the `linkWrap` should not be empty if someone activates `ATagBeforeWrap` because it's nonsensical. But handling it does not make a lot of effort.
Updated by Gerrit Code Review almost 3 years ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72793
Updated by Gerrit Code Review almost 3 years ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/72784
Updated by Chris Müller almost 3 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset f8d021c8b7c43bfb759bd49923e3f70bf907187d.
Actions