brotkrueml / typo3-matomo-integration

Matomo integration for TYPO3
https://extensions.typo3.org/extension/matomo_integration
GNU General Public License v2.0
4 stars 4 forks source link

Error when opening a site configuration in TYPO3 v12.3 #15

Closed brotkrueml closed 1 year ago

brotkrueml commented 1 year ago

Current behavior

When opening a site configuration in TYPO3 v12.3 the following error is displayed:

Item 0 of field matomoIntegrationTagManagerDebugMode of TCA table site has no label

Additionally, the "matomoIntegrationOptions" field only displays empty labels. When saving all selections are removed.

Expected behavior/output

The site configuration is opened correctly and no error is displayed. The options are not removed upon saving.

Steps to reproduce

Open a site configuration in the Sites backend module.

Environment

Possible Solution

Maybe related to this change: https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.3/Feature-99739-AssociativeArrayKeysForTCAItems.html

A workaround to be compatible with TYPO3 v11 and v12 is:

     'items' => [[
         0 => '',
         1 => '',
+       'label' => '',
+       'value' => '',
     ]],

in Configuration/SiteConfiguration/Overrides/sites.php

brotkrueml commented 1 year ago

This PR migrates the TCA also in site configuration: https://review.typo3.org/c/Packages/TYPO3.CMS/+/78333