Project

General

Profile

Actions

Bug #50396

closed

RootlineUtility->enrichWithRelationFields issue with "group" type MM fields

Added by Popy no-lastname-given over 10 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Category:
Miscellaneous
Target version:
Start date:
2013-07-24
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
6.1
PHP Version:
Tags:
Complexity:
easy
Is Regression:
No
Sprint Focus:

Description

I've been experiencing a recurring warning on a website, and I figured that something in RootlineUtility->enrichWithRelationFields is strange :

   $loadDBGroup = \TYPO3\CMS\Core\Utility\GeneralUtility::makeInstance('TYPO3\\CMS\\Core\\Database\\RelationHandler');
   $loadDBGroup->start($pageRecord[$column], $configuration['foreign_table'], $configuration['MM'], $uid, 'pages', $configuration);
   $relatedUids = $loadDBGroup->tableArray[$configuration['foreign_table']];

The code uses a "foreign_table" property, wich is not meant to exist in a "group" relation field.


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Bug #61519: Add missing check in RootlineUtilityClosedJacob Rasmussen2014-09-10

Actions
Actions #1

Updated by Francois Suter about 10 years ago

  • Status changed from New to Accepted
  • Assignee set to Francois Suter
  • Priority changed from -- undefined -- to Should have
  • Target version set to next-patchlevel
  • TYPO3 Version changed from 6.0 to 6.1
  • Complexity set to easy
  • Is Regression set to No

I have had this every now and then and finally took the time to track it down today. You're right that it's wrong to test only for "foreign_table". On top of improving that part, I think it's also good to check if the array to implode (some lines later) is really an array. I'll push a patch now.

Actions #2

Updated by Gerrit Code Review about 10 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29493

Actions #3

Updated by Gerrit Code Review about 10 years ago

Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29493

Actions #4

Updated by Gerrit Code Review almost 10 years ago

Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/29493

Actions #5

Updated by Gerrit Code Review over 9 years ago

Patch set 4 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/29493

Actions #6

Updated by Gerrit Code Review over 9 years ago

Patch set 5 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/29493

Actions #7

Updated by Gerrit Code Review over 9 years ago

Patch set 1 for branch TYPO3_6-2 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32725

Actions #8

Updated by Francois Suter over 9 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100
Actions #9

Updated by Gerrit Code Review over 9 years ago

  • Status changed from Resolved to Under Review

Patch set 1 for branch TYPO3_6-1 of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at http://review.typo3.org/32726

Actions #10

Updated by Francois Suter over 9 years ago

  • Status changed from Under Review to Resolved
Actions #11

Updated by Benni Mack over 5 years ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF