Fixed bug #16553: TCA tree does not work for relation-fields without TCA Definition.
authorSteffen Ritter <info@rs-websystems.de>
Mon, 29 Nov 2010 13:01:47 +0000 (13:01 +0000)
committerSteffen Ritter <info@rs-websystems.de>
Mon, 29 Nov 2010 13:01:47 +0000 (13:01 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9671 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/tree/tca/class.t3lib_tree_tca_databasetreedataprovider.php

index 588cce6..3cd3800 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -8,6 +8,7 @@
        * Fixed bug #16597: TCA tree: Adapt Signature of own select renderMode tree to match the signature other select-modes 
        * Fixed bug #16600: TCA tree: Move the ACL-Checks out from Data-Provider and use the information from tceFroms 
        * Follow-up to bug #16600: TCA tree: Move the ACL-Checks out from Data-Provider and use the information from tceFroms (added missing class)
+       * Fixed bug #16553: TCA tree does not work for relation-fields without TCA Definition.
 
 2010-11-29  Jigal van Hemert <jigal@xs4all.nl>
 
index 463eed2..faadc23 100644 (file)
@@ -405,7 +405,7 @@ class t3lib_tree_Tca_DatabaseTreeDataProvider extends t3lib_tree_Tca_AbstractTca
                                        }
                                }
                        break;
-                       case 'group':
+                       default:
                                $records = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows(
                                        'uid',
                                        $columnConfiguration['foreign_table'],
@@ -415,7 +415,6 @@ class t3lib_tree_Tca_DatabaseTreeDataProvider extends t3lib_tree_Tca_AbstractTca
                                foreach ($records as $record) {
                                        $relatedUids[] = $record['uid'];
                                }
-                       break;
                }
 
                return $relatedUids;
@@ -461,9 +460,8 @@ class t3lib_tree_Tca_DatabaseTreeDataProvider extends t3lib_tree_Tca_AbstractTca
                                        $relatedUids = t3lib_div::intExplode(',', $value, TRUE);
                                }
                        break;
-                       case 'group':
+                       default:
                                $relatedUids = t3lib_div::intExplode(',', $value, TRUE);
-                       break;
                }
 
                return $relatedUids;