#96377Undefined array key "linkWrap" in TextMenuContentObject if ATagBeforeWrap=1
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.
Reviews 2
History 24
-
Gerrit Code Review pushed patch set 1 for main to change 72793 status
NewUnder Review 12/22/21, 14:39 -
Gerrit Code Review pushed patch set 1 for 11.5 to change 72784 12/23/21, 12:51
-
Chris Müller commented and changed status
Under ReviewResolved done0 %100 % 12/23/21, 12:55 -
Benni Mack changed status
ResolvedClosed 10/04/22, 14:14
Applied in changeset commit:f8d021c8b7c43bfb759bd49923e3f70bf907187d.