[BUGFIX] Prevent double dots in data-table string for csh 88/41988/7
authorJuan Manuel Verges Solanas <juanmanuel.vergessolanas@gmail.com>
Mon, 27 Jul 2015 16:59:41 +0000 (16:59 +0000)
committerWouter Wolters <typo3@wouterwolters.nl>
Mon, 27 Jul 2015 18:28:46 +0000 (20:28 +0200)
Resolves: #68556
Releases: master
Change-Id: Ib32b4a9abb4fa46bee959027a52bfb6dbb372fa5
Reviewed-on: http://review.typo3.org/41988
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Tested-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Andreas Fernandez <typo3@scripting-base.de>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters <typo3@wouterwolters.nl>
typo3/sysext/backend/Classes/Form/Container/FlexFormNoTabsContainer.php
typo3/sysext/backend/Classes/Form/Container/FlexFormTabsContainer.php

index 50e2962..abec299 100644 (file)
@@ -69,7 +69,9 @@ class FlexFormNoTabsContainer extends AbstractContainer {
                $dsPointerFields = GeneralUtility::trimExplode(',', $GLOBALS['TCA'][$table]['columns'][$fieldName]['config']['ds_pointerField'], TRUE);
                $parameterArray['_cshKey'] = $table . '.' . $fieldName;
                foreach ($dsPointerFields as $key) {
-                       $parameterArray['_cshKey'] .= '.' . $row[$key];
+                       if ((string)$row[$key] !== '') {
+                               $parameterArray['_cshKey'] .= '.' . $row[$key];
+                       }
                }
 
                $options = $this->globalOptions;
index 239c661..5cede74 100644 (file)
@@ -78,7 +78,9 @@ class FlexFormTabsContainer extends AbstractContainer {
                        $dsPointerFields = GeneralUtility::trimExplode(',', $GLOBALS['TCA'][$table]['columns'][$fieldName]['config']['ds_pointerField'], TRUE);
                        $parameterArray['_cshKey'] = $table . '.' . $fieldName;
                        foreach ($dsPointerFields as $key) {
-                               $parameterArray['_cshKey'] .= '.' . $row[$key];
+                               if ((string)$row[$key] !== '') {
+                                       $parameterArray['_cshKey'] .= '.' . $row[$key];
+                               }
                        }
 
                        $options = $this->globalOptions;