From b30b8acfe50d5fa169e5a2d65abf17af1ac4341e Mon Sep 17 00:00:00 2001 From: Michael Semle Date: Fri, 28 Jun 2024 13:36:38 +0200 Subject: [PATCH 1/5] [TASK] Raise TYPO3 compatibility for v13 --- composer.json | 2 +- ext_emconf.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index a60005f..d94c01e 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": "^10.4 || ^11.5 || ^12.4 || ^13.0" }, "replace": { "typo3-ter/masi": "self.version" diff --git a/ext_emconf.php b/ext_emconf.php index 7ba9450..5fb8226 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' => '10.4.0-13.99.99', ], ], ]; From 0c15134ef1911ae8c854d41a0080c4e7d1669066 Mon Sep 17 00:00:00 2001 From: jschlier <9108576+jschlier@users.noreply.github.com> Date: Tue, 3 Sep 2024 17:38:44 +0200 Subject: [PATCH 2/5] [TASK] Remove unnecessary items from checkbox --- Configuration/TCA/Overrides/pages.php | 6 ------ 1 file changed, 6 deletions(-) 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, ], 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 3/5] [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); From 8bb8e49ed421427e88a6f0432127d163c1d59a36 Mon Sep 17 00:00:00 2001 From: jschlier <9108576+jschlier@users.noreply.github.com> Date: Tue, 5 Nov 2024 16:10:58 +0100 Subject: [PATCH 4/5] [BUGFIX] Fix broken braces --- Classes/SlugModifier.php | 1 - 1 file changed, 1 deletion(-) diff --git a/Classes/SlugModifier.php b/Classes/SlugModifier.php index 05e7a37..44f2ee8 100644 --- a/Classes/SlugModifier.php +++ b/Classes/SlugModifier.php @@ -88,7 +88,6 @@ protected function resolveHookParameters(array $configuration, string $tableName ) ->executeQuery() ->fetchAssociative(); - } if ($row !== false) { $this->recordData = array_replace($row, $record); } From 1dc72dd2fa3eb04e4879629c1207689974a54d84 Mon Sep 17 00:00:00 2001 From: Achim Fritz Date: Thu, 28 Nov 2024 14:02:25 +0100 Subject: [PATCH 5/5] !!![TASK] drop TYPO3 v10 Support --- composer.json | 2 +- ext_emconf.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index d94c01e..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.4 || ^13.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 5fb8226..0f89c2f 100644 --- a/ext_emconf.php +++ b/ext_emconf.php @@ -11,7 +11,7 @@ 'version' => '2.0.3', 'constraints' => [ 'depends' => [ - 'typo3' => '10.4.0-13.99.99', + 'typo3' => '11.5.0-13.99.99', ], ], ];