[BUGFIX] Multi-table relationship not recognized in t3lib_loadDBGroup 50/9150/3
authorMarkus Opahle <markus.opahle@avenit.de>
Wed, 22 Feb 2012 14:54:29 +0000 (15:54 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Sun, 12 May 2013 13:31:22 +0000 (15:31 +0200)
If a multi-table relationship has $MM_oppositeFieldConf['allowed']=='*',
then it is not recognized as such one in t3lib_loadDBGroup::start().

Change-Id: Ifbf8a71af8a9d0a0636d8a2332999c402a717559
Resolves: #34148
Releases: 4.7, 4.6, 4.5
Reviewed-on: https://review.typo3.org/9150
Reviewed-by: Susanne Moog
Tested-by: Susanne Moog
Reviewed-by: Mario Rimann
Reviewed-by: Stefan Neufeind
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
t3lib/class.t3lib_loaddbgroup.php

index 0677835..8f65a69 100644 (file)
@@ -132,7 +132,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];
                                }
                        }