Issue Bug Rejected

#86853Saving record with slug field fails in 9.5.1

Chris Müller 11/05/18, 13:17 updated 11/06/18, 16:17

Description

Given is a record in an own extension with a slug field.

The TCA configuration is as follows:

‘path_segment’ => [
‘label’ => ‘Path segment’,
‘exclude’ => true,
‘config’ => [
‘type’ => ‘slug’,
‘generatorOptions’ => [
‘fields’ => [‘title’],
‘fieldSeparator’ => ‘/’,
‘prefixParentPageSlug’ => false,
],
‘fallbackCharacter’ => ‘-’,
‘eval’ => ‘uniqueInPid’,
],
],

The generation of the slug is working due to the bugfix in #86809. But the saving of the record throws the exception:

Argument 2 passed to TYPO3\CMS\Core\DataHandling\SlugHelper::isUniqueInPid() must be an instance of TYPO3\CMS\Core\DataHandling\Model\RecordState, instance of TYPO3\CMS\Core\DataHandling\Model\RecordStateFactory given, called in /var/www/html/public/typo3/sysext/core/Classes/DataHandling/SlugHelper.php on line 337

I am using a multi-lingual single-page tree (I don’t know if this is relevant).

I can reproduce the error also in the news extension.

It worked in 9.5.0, but not in 9.5.1 and 9.5.x-dev (as of time of writing).

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.