Skip to content

Commit

Permalink
Display numeric and boolean values in export / listing
Browse files Browse the repository at this point in the history
Fixes bug that prevents numeric and boolean properties to be displayed in export and backend listings.
  • Loading branch information
christophengelmayer authored Apr 4, 2023
1 parent dc67867 commit 45eb8ac
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Classes/Service/DatabaseStorageService.php
Original file line number Diff line number Diff line change
Expand Up @@ -293,6 +293,12 @@ protected function getStringValue($value, int $indent = 0): string
if (is_string($value)) {
return $value;
}
if (is_numeric($value)) {
return (string) $value;
}
if (is_bool($value)) {
return ($value ? 'true' : 'false');
}
if (is_object($value) && method_exists($value, '__toString')) {
return (string)$value;
}
Expand Down

0 comments on commit 45eb8ac

Please sign in to comment.