Skip to content

Commit

Permalink
Use empty sorting if wrap for given property doesn't exists
Browse files Browse the repository at this point in the history
  • Loading branch information
beatrycze-volk committed May 31, 2024
1 parent 5de709f commit 952f9de
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Classes/ViewHelpers/MetadataWrapVariableViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,9 @@ public static function renderStatic(
$parser = GeneralUtility::makeInstance(TypoScriptParser::class);
$parser->parse($renderChildrenClosure());
$wrap = [
'key' => $parser->setup['key.'],
'value' => $parser->setup['value.'],
'all' => $parser->setup['all.'],
'key' => $parser->setup['key.'] ?? '',
'value' => $parser->setup['value.'] ?? '',
'all' => $parser->setup['all.'] ?? '',
];
$renderingContext->getVariableProvider()->add($arguments['name'], $wrap);
}
Expand Down

0 comments on commit 952f9de

Please sign in to comment.