Skip to content

Commit

Permalink
Merge pull request #141 from KaufmannDigital/master
Browse files Browse the repository at this point in the history
BUGFIX: mapValueToOption should always return string
  • Loading branch information
daniellienert committed Jun 15, 2021
2 parents 25b2f05 + 190adba commit b76e137
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Classes/ViewHelpers/RenderValuesViewHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ protected function mapValuesToOptions(array $value, array $options): array
*/
protected function mapValueToOption($value, array $options): string
{
return $options[$value] ?? $value;
return $options[$value] ?? $value ?? '';
}

/**
Expand Down

0 comments on commit b76e137

Please sign in to comment.