show_item does not properly resolve MM group items
When showing record information, fields which are inline records wrongly use the number of references as foreign uid to fetch related items and compute the label instead of resolving the relation.
In fact, the relations are properly resolved but never used as $this->row is not overridden by the result of the data-preprocessing.
Seems like it is bound to TYPO3 6.x because former versions did not resolve the relation and only showed the number of children.
#1 Updated by Xavier Perseguers almost 6 years ago
The call to
\TYPO3\CMS\Backend\Controller\ContentElement\ElementInformationController seems to be a bad idea since native date/time fields are then converted to timestamps. Using
->renderRecordRaw() instead solves this and should not have side-effect since TSC is skipped but only used for RTE processing.
#7 Updated by Xavier Perseguers over 5 years ago
- Subject changed from show_item does not properly resolve inline items to show_item does not properly resolve MM group items
- Status changed from Closed to New
- Target version deleted (
- TYPO3 Version changed from 6.2 to 6.1
My original bug report must not have been clear enough, I still have the problem, specifically with "group" records using 'MM' relation:
'config' => array( 'type' => 'group', 'internal_type' => 'db', 'allowed' => 'tx_myext_domain_model_member', 'foreign_table' => 'tx_myext_domain_model_member', // MANDATORY for Extbase 'MM' => 'tx_myext_member_memberparrain_mm', 'size' => 3, 'autoSizeMax' => 5, 'maxitems' => 5, 'multiple' => 0, ),
The problem occurs when using the "INFO" button on a record. Column containing such a definition will hold the number of selected records as "value", and this value will be used as a uid since 'MM' is not checked.