Skip to content

Commit

Permalink
Merge pull request #33 from christophengelmayer/fix-numeric-and-boole…
Browse files Browse the repository at this point in the history
…an-display

Display numeric and boolean values in export / listing
  • Loading branch information
Benjamin-K authored Apr 4, 2023
2 parents dc67867 + 45eb8ac commit 569e7d4
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 569e7d4

Please sign in to comment.