Skip to content

Commit

Permalink
[BUGFIX] Fix wrong merge
Browse files Browse the repository at this point in the history
  • Loading branch information
georgringer committed Jul 26, 2024
1 parent 5cf60a5 commit 7660fbe
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions Classes/FormEngine/TtAddressPreviewRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
use Doctrine\DBAL\ArrayParameterType;
use TYPO3\CMS\Backend\Preview\StandardContentPreviewRenderer;
use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Backend\View\Event\PageContentPreviewRenderingEvent;
use TYPO3\CMS\Core\Database\ConnectionPool;
use TYPO3\CMS\Core\Database\Query\Restriction\HiddenRestriction;
use TYPO3\CMS\Core\Service\FlexFormService;
Expand Down Expand Up @@ -43,14 +44,14 @@ class TtAddressPreviewRenderer extends StandardContentPreviewRenderer
],
];

protected function renderContentElementPreviewFromFluidTemplate(array $row): ?string
public function __invoke(PageContentPreviewRenderingEvent $event): void
{
$row = $event->getRecord();
if ($row['list_type'] !== 'ttaddress_listview') {
return;
}
$row = $this->enrichRow($row);
return parent::renderContentElementPreviewFromFluidTemplate($row);
$event->setRecord($row);
}

protected function enrichRow(array $row): array
Expand Down Expand Up @@ -103,4 +104,4 @@ protected function getFlexFormData(string $flexforms): array
}
return $settings;
}
}
}
6 changes: 3 additions & 3 deletions ext_emconf.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
'clearCacheOnLoad' => true,
'author' => 'tt_address Development Team',
'author_email' => '[email protected]',
'version' => '8.1.0',
'version' => '9.0.0',
'constraints' => [
'depends' => [
'typo3' => '12.4.0-13.9.99',
'typo3' => '12.4.17-13.9.99',
],
'conflicts' => [
],
Expand All @@ -24,4 +24,4 @@
'autoload-dev' => [
'psr-4' => ['FriendsOfTYPO3\\TtAddress\\Tests\\' => 'Tests'],
],
];
];

0 comments on commit 7660fbe

Please sign in to comment.