Skip to content

Commit

Permalink
Merge pull request #524 from kaystrobach/patch-1
Browse files Browse the repository at this point in the history
[BUGFIX] harden broken types
  • Loading branch information
RinyVT authored Jul 5, 2023
2 parents adafed0 + 1f97475 commit a54abd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ We will follow [Semantic Versioning](http://semver.org/).
- Removed loading of `extended-list-widget.min.css` within `PageOverviewWidget`
- `doctrine/dbal` 2.10 support by adding `DbalService` which checks for the TYPO3 major version, if 10 then use the old `fetch` methods
- Loading state of internal linking suggestions when the bodytext is empty (e.g. new content element)
- Avoid exceptions because of broken showitem tt_content types

## 9.0.0 June 12, 2023
### Breaking
Expand Down
3 changes: 3 additions & 0 deletions Configuration/TCA/Overrides/tt_content.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@
]
);
foreach ($GLOBALS['TCA']['tt_content']['types'] as $type => $config) {
if (!isset($GLOBALS['TCA']['tt_content']['types'][$type]['showitem'])) {
continue;
}
$GLOBALS['TCA']['tt_content']['types'][$type]['showitem'] =
str_replace(
'bodytext;LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:bodytext_formlabel,',
Expand Down

0 comments on commit a54abd6

Please sign in to comment.