Actions
Bug #97914
openSlug fields should be initialized or re-evaluated after record creation
Status:
New
Priority:
Should have
Assignee:
-
Category:
Site Handling, Site Sets & Routing
Target version:
-
Start date:
2022-07-12
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
Hi,
The SlugHelper incorrectly evaluates the field value on record creation when it depends on dynamic fields like the UID.
Setup example:
'path_segment' => [
'label' => $ll . '.path_segment',
'config' => [
'type' => 'slug',
'size' => 50,
'generatorOptions' => [
'fields' => ['title','uid'],
'fieldSeparator' => '-',
'replacements' => [
'/' => '-'
],
],
'fallbackCharacter' => '-',
'eval' => $configuration->getSlugBehaviour(),
'default' => ''
]
],
Current result: test-1
Expected result: test-4742 (value obtained with the recalculate button)
Thanks
Actions