Skip to content

Commit

Permalink
[BUGFIX] Remove call to obsolete DBAL query method
Browse files Browse the repository at this point in the history
  • Loading branch information
jschlier authored Nov 5, 2024
1 parent 0c15134 commit 7be0cee
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Classes/SlugModifier.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 7be0cee

Please sign in to comment.