[BUGFIX] Multi-table relationship not recognized in t3lib_loadDBGroup
authorMarkus Opahle <markus.opahle@avenit.de>
Wed, 22 Feb 2012 14:54:29 +0000 (15:54 +0100)
committerSteffen Gebert <steffen.gebert@typo3.org>
Sun, 19 Aug 2012 19:30:11 +0000 (21:30 +0200)
If a multi-table relationship has $MM_oppositeFieldConf['allowed']=='*',
then it is not recognized as such one in t3lib_loadDBGroup::start().

Change-Id: Ibe98a0068f8cd69cadc74dec5ae802681f636f8f
Resolves: #34148
Releases: 4.7, 4.6, 4.5
Reviewed-on: http://review.typo3.org/13015
Reviewed-by: Markus Opahle
Tested-by: Markus Opahle
Reviewed-by: Wouter Wolters
Reviewed-by: Steffen Gebert
Tested-by: Steffen Gebert
t3lib/class.t3lib_loaddbgroup.php

index 12912c3..260d8b2 100644 (file)
@@ -108,7 +108,7 @@ class t3lib_loadDBGroup {
 
                        if ($this->MM_oppositeFieldConf['allowed']) {
                                $oppositeFieldConf_allowed = explode(',', $this->MM_oppositeFieldConf['allowed']);
-                               if (count($oppositeFieldConf_allowed) > 1) {
+                               if (count($oppositeFieldConf_allowed) > 1 || $this->MM_oppositeFieldConf['allowed'] === '*') {
                                        $this->MM_isMultiTableRelationship = $oppositeFieldConf_allowed[0];
                                }
                        }