[BUGFIX] Prevent wrong ref_index for fields with soft references
If you add a page link to a field which is defined as softrefs, the ReferenceIndex creates an index to a FAL record if there exists a file record with the page id. As file links are always prefixed with 'file:' this patch adds a proper check before generating a file ref_index. Because the functional tests of impexp extension still use a hardcoded file path for the header_link field the patch corrects the value to refer to a file. Furthermore if you add a file or folder link, the field is referenced twice for the FAL record. So we have to suppress the softreference for those records. Releases: master, 6.2 Resolves: #60226 Change-Id: I969224e2a291491cb7ece1f61b375071bf0eaebc Reviewed-on: http://review.typo3.org/37086 Reviewed-by:Markus Klein <klein.t3@reelworx.at> Tested-by:
Markus Klein <klein.t3@reelworx.at> Reviewed-by:
Andreas Fernandez <andreas.fernandez@aspedia.de> Reviewed-by:
Göran Bodenschatz <coding@46halbe.de> Reviewed-by:
Wouter Wolters <typo3@wouterwolters.nl> Reviewed-by:
Anja Leichsenring <aleichsenring@ab-softlab.de> Tested-by:
Anja Leichsenring <aleichsenring@ab-softlab.de>
Showing
- typo3/sysext/core/Classes/Database/ReferenceIndex.php 6 additions, 2 deletionstypo3/sysext/core/Classes/Database/ReferenceIndex.php
- typo3/sysext/impexp/Tests/Functional/Fixtures/Database/tt_content.xml 2 additions, 2 deletions.../impexp/Tests/Functional/Fixtures/Database/tt_content.xml
- typo3/sysext/impexp/Tests/Functional/Fixtures/ImportExportXml/pages-and-ttcontent.xml 46 additions, 6 deletions...nctional/Fixtures/ImportExportXml/pages-and-ttcontent.xml
- typo3/sysext/impexp/Tests/Functional/Import/PagesAndTtContent/DataSet/Assertion/importPagesAndRelatedTtContent.csv 2 additions, 2 deletions...tent/DataSet/Assertion/importPagesAndRelatedTtContent.csv
Please register or sign in to comment