From 7be0cee27dd7ce268b3a81c0dd3ffe8f94b28fc4 Mon Sep 17 00:00:00 2001 From: jschlier <9108576+jschlier@users.noreply.github.com> Date: Tue, 5 Nov 2024 15:56:27 +0100 Subject: [PATCH] [BUGFIX] Remove call to obsolete DBAL query method --- Classes/SlugModifier.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Classes/SlugModifier.php b/Classes/SlugModifier.php index 65f5916..05e7a37 100644 --- a/Classes/SlugModifier.php +++ b/Classes/SlugModifier.php @@ -81,16 +81,13 @@ protected function resolveHookParameters(array $configuration, string $tableName if (isset($record['uid'])) { // load full record from db (else: it is a new record) $queryBuilder = GeneralUtility::makeInstance(ConnectionPool::class)->getQueryBuilderForTable('pages'); - $stm = $queryBuilder->select('*') + $row = $queryBuilder->select('*') ->from('pages') ->where( $queryBuilder->expr()->eq('uid', $queryBuilder->createNamedParameter($record['uid'], Connection::PARAM_INT)) ) - ->execute(); - if ((GeneralUtility::makeInstance(Typo3Version::class))->getMajorVersion() === 10) { - $row = $stm->fetch(); - } else { - $row = $stm->fetchAssociative(); + ->executeQuery() + ->fetchAssociative(); } if ($row !== false) { $this->recordData = array_replace($row, $record);