Actions
Bug #86959
closedTCA type "slug" not working for custom extension records
Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2018-11-21
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
In 9.5.0 that has already worked, but no longer in 9.5.1. The TCA configuration is the following:
'slug' => [
'exclude' => 1,
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_tca.xlf:pages.slug',
'config' => [
'type' => 'slug',
'size' => 50,
'generatorOptions' => [
'fields' => ['title'],
'fieldSeparator' => '/'
],
'fallbackCharacter' => '-',
'eval' => 'uniqueInSite',
'default' => ''
]
],
The creation button in TCE form doesn't work (nothing happens) as well as entering a slug manually leads to the following error when saving the record.
Core: Exception handler (WEB): Uncaught TYPO3 Exception: Argument 1 passed to
TYPO3\CMS\Core\DataHandling\Model\RecordStateFactory::
TYPO3\CMS\Core\DataHandling\Model\{closure}() must be of the type string, null given
| TypeError thrown in file /www/htdocs/_TYPO3_/typo3_src-9.5.1/typo3/sysext/core/Classes
/DataHandling/Model/RecordStateFactory.php in line 103
Updated by Jan Kornblum about 6 years ago
I've just seen that this seems to be fixed soon:
https://github.com/TYPO3/TYPO3.CMS/commit/3f182270333509171c3029cdf1969b8a559417bc
Actions