diff --git a/Classes/SlugModifier.php b/Classes/SlugModifier.php index 65f5916..44f2ee8 100644 --- a/Classes/SlugModifier.php +++ b/Classes/SlugModifier.php @@ -81,17 +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); } diff --git a/Configuration/TCA/Overrides/pages.php b/Configuration/TCA/Overrides/pages.php index 447771b..d5cf27c 100644 --- a/Configuration/TCA/Overrides/pages.php +++ b/Configuration/TCA/Overrides/pages.php @@ -11,12 +11,6 @@ 'config' => [ 'type' => 'check', 'renderType' => 'checkboxToggle', - 'items' => [ - [ - 0 => '', - 1 => '', - ], - ], 'behaviour' => [ 'allowLanguageSynchronization' => true, ], diff --git a/composer.json b/composer.json index a60005f..1825636 100644 --- a/composer.json +++ b/composer.json @@ -14,7 +14,7 @@ "license": ["GPL-2.0-or-later"], "require": { "php": "^7.4 || ~8.0", - "typo3/cms-core": "^10.4 || ^11.5 || ^12.0" + "typo3/cms-core": "^11.5 || ^12.4 || ^13.0" }, "replace": { "typo3-ter/masi": "self.version" diff --git a/ext_emconf.php b/ext_emconf.php index 7ba9450..0f89c2f 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -11,7 +11,7 @@ 'version' => '2.0.3', 'constraints' => [ 'depends' => [ - 'typo3' => '10.4.0-12.99.99', + 'typo3' => '11.5.0-13.99.99', ], ], ];