Project

General

Profile

Actions

Bug #65126

closed

Refindex not correctly updated for flexform fields

Added by Dominique Kreemers about 9 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Workspaces
Target version:
-
Start date:
2015-02-17
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.2
PHP Version:
Tags:
Complexity:
medium
Is Regression:
No
Sprint Focus:

Description

This occurs in TYPO3 6.2.9.

When saving content elements with flexform fields the refindex isn't updated.
Therefore the grouping in the workspace module is not working as expected.

This seems like a wrong method call in typo3/sysext/core/Classes/Database/ReferenceIndex.php -> getRelations_flexFormCallBack on line 494.
https://forge.typo3.org/projects/typo3cms-core/repository/revisions/6.2.9/entry/typo3/sysext/core/Classes/Database/ReferenceIndex.php#L494

$resultsFromDatabase = $this->getRelations_procDB($dataValue, $dsConf, $uid, $field);

The method is defined like this:

/**
 * Check field configuration if it is a DB relation field and extract DB relations if any
 *
 * @param string $value Field value
 * @param array $conf Field configuration array of type "TCA/columns
 * @param integer $uid Field uid
 * @param string $table Table name
 * @param string $field Field name
 * @return array If field type is OK it will return an array with the database relations. Else FALSE
 * @todo Define visibility
 */
public function getRelations_procDB($value, $conf, $uid, $table = '', $field = '') {

After changing the call to

$resultsFromDatabase = $this->getRelations_procDB($dataValue, $dsConf, $uid, $table, $field);

the generated sys_refindex records looked very promising, but unfortunately the grouping in the workspace module is still not working for related records (e.g. sys_file_reference records).


Files

flexform_test.zip (3.69 KB) flexform_test.zip Dominique Kreemers, 2015-03-16 18:15
Bildschirmfoto 2015-03-16 um 18.07.59.png (60.6 KB) Bildschirmfoto 2015-03-16 um 18.07.59.png Dominique Kreemers, 2015-03-16 18:15
patch.diff (2.96 KB) patch.diff Dominique Kreemers, 2015-03-16 18:15
patch.diff (2.97 KB) patch.diff Dominique Kreemers, 2015-03-17 09:43
without-patch-file-reference-is-not-grouped-with-content.png (33.7 KB) without-patch-file-reference-is-not-grouped-with-content.png without patch file reference is not grouped with content Stephan Großberndt, 2015-03-31 20:02
with-patch-file-reference-is-grouped-with-content.png (41.5 KB) with-patch-file-reference-is-grouped-with-content.png with patch file reference is grouped with content Stephan Großberndt, 2015-03-31 20:02

Related issues 3 (1 open2 closed)

Related to TYPO3 Core - Bug #60226: Content Element header_link to a page also adds a references to the file with same idClosedNicole Cordes2014-07-10

Actions
Related to TYPO3 Core - Bug #70921: Really resolve meaning of FlexForm fields in version dependency resolverAcceptedOliver Hader2015-10-21

Actions
Related to TYPO3 Core - Bug #68463: Infinite Recursion blocks the Live WorkspaceClosed2015-07-22

Actions
Actions

Also available in: Atom PDF