Skip to content

Commit

Permalink
UPDATE: Change output of array values
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin-K committed Nov 8, 2021
1 parent 8c7c4dc commit b1d94b7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
10 changes: 1 addition & 9 deletions Classes/Controller/DatabaseStorageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -140,15 +140,7 @@ public function showAction(string $identifier)
$properties = $entry->getProperties();

foreach ($properties as &$value) {
if (is_array($value)) {
// Todo fix this for deep arrays
foreach ($value as &$innerValue) {
$innerValue = $this->getStringValue($innerValue);
}
$value = sprintf('<ul><li>%s</li></ul>', implode('</li><li>', $value));
} else {
$value = $this->getStringValue($value);
}
$value = $this->getStringValue($value);
}

$entry->setProperties($properties);
Expand Down
2 changes: 1 addition & 1 deletion Resources/Private/Templates/DatabaseStorage/Show.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<tr>
<th class="size-sm"><!-- Actions -->&nbsp;</th>
<f:for each="{titles}" as="title">
<th>{title}</th>
<th>{title -> f:format.nl2br()}</th>
</f:for>
<th>{neos:backend.translate(id: 'storage.datetime')}</th>
</tr>
Expand Down

0 comments on commit b1d94b7

Please sign in to comment.