Project

General

Profile

Actions

Bug #86959

closed

TCA type "slug" not working for custom extension records

Added by Jan Kornblum about 6 years ago. Updated about 6 years ago.

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
Actions #2

Updated by Georg Ringer about 6 years ago

  • Status changed from New to Closed

Closed as duplicate

Actions

Also available in: Atom PDF