Bug #94388
closedSlug postModifiers hook record data missing
100%
Description
I want to use a hook for a slug field via "postModifiers" (see feature https://docs.typo3.org/c/typo3/cms-core/master/en-us/Changelog/9.5.x/Feature-88198-TCA-basedSlugModifiersForExtensions.html).
Documentation says:
The method then receives a parameter array with the following values:
'record' ... the full record to be used
But the array key "record" doesn't contain the full record, just some:
array(5) { ["myrecord"]=> string(0) "" ["mytitle"]=> string(4) "test" ["uid"]=> int(199) ["pid"]=> int(175) ["sys_language_uid"]=> int(0) }
It just contains two custom fields, I think because I provide these fields in the TCA configuration:
'generatorOptions' => [ 'fields' => ['myrecord', 'mytitle'],
Second bug: Field "myrecord" contains no value, even though I chose a record. Configuration for this field:
'config' => array( 'type' => 'group', 'internal_type' => 'db', 'allowed' => 'tx_myext_domain_model_mymodel',
Edit 15.08.2022: Checked with newest TYPO3 v10, bug still existing.
Updated by Sven Burkert over 2 years ago
- Category deleted (
Backend API) - Complexity set to medium
- Sprint Focus set to Needs Decision
Updated by Sven Burkert almost 2 years ago
- Category set to Site Handling, Site Sets & Routing
Updated by Gerrit Code Review 6 months ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84574
Updated by Gerrit Code Review 6 months ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84574
Updated by Gerrit Code Review 5 months ago
Patch set 1 for branch 12.4 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84691
Updated by Gerrit Code Review 5 months ago
Patch set 1 for branch 11.5 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/84692
Updated by Georg Ringer 5 months ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset cfabd9dc7bc39a79b42937b96d64fb8959a002e0.
Updated by Georg Ringer 5 months ago
- Has duplicate Bug #91335: postModifiers inside generatorOptions of TCA-type slug don't get the full record added