#97914Slug fields should be initialized or re-evaluated after record creation
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
Reviews 0
No change resolves or names this issue in its commit message, and no comment links one.
Fix this issue
Start the commit message of your patch with this. Add what the patch does, and the versions it goes to in "Releases:". How to create a patch
- Commit message
-
[BUGFIX] Slug fields should be initialized or re-evaluated after record creation Resolves: #97914 Releases: main