Bug #86959

TCA type "slug" not working for custom extension records

Added by Jan Kornblum 6 months ago. Updated 6 months ago.

Status:
Closed
Priority:
Must have
Assignee:
-
Category:
Link Handling, Site Handling & Routing
Target version:
-
Start date:
2018-11-21
Due date:
% Done:

0%

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

History

#2 Updated by Georg Ringer 6 months ago

  • Status changed from New to Closed

Closed as duplicate

Also available in: Atom PDF