CodersCare / l10nmgr

GNU General Public License v3.0
0 stars 9 forks source link

Missing field `description` in Localization submodule #27

Closed Konafets closed 1 year ago

Konafets commented 1 year ago

When the user defined a language restriction for a page or content element and switches to the Localization submodule, an error is shown:

Core: Exception handler (WEB): Uncaught TYPO3 Exception: #1476107295: PHP Warning: Undefined array key "description" in /l10nmgr_v11/public/typo3/sysext/core/Classes/Collection/AbstractRecordCollection.php line 466 | TYPO3\CMS\Core\Error\Exception thrown in file /l10nmgr_v11/public/typo3/sysext/core/Classes/Error/ErrorHandler.php in line 137. Requested URL: https://l10nmgr-v11.loc/typo3/module/LocalizationManager?token=--AnonymizedToken--&id=2&srcPID=2&exportUID=1

This happens, because the AbstractRecordCollection expects a description field to be present in the table which is in this case sys_language. Adding that field within the extension is the solution here.