Project

General

Profile

Actions

Bug #86853

closed

Saving record with slug field fails in 9.5.1

Added by Chris Müller about 6 years ago. Updated about 6 years ago.

Status:
Rejected
Priority:
Must have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2018-11-05
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
9
PHP Version:
7.2
Tags:
Complexity:
Is Regression:
Sprint Focus:

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).


Files

typo3_8aacc053fe.log (16.5 KB) typo3_8aacc053fe.log Exception trace Chris Müller, 2018-11-05 13:15
Actions

Also available in: Atom PDF