[BUGFIX] Add missing break statement in switch case 59/51759/5
authorSascha Egerer <sascha@sascha-egerer.de>
Sun, 19 Feb 2017 19:42:30 +0000 (20:42 +0100)
committerChristian Kuhn <lolli@schwarzbu.ch>
Mon, 20 Feb 2017 19:36:34 +0000 (20:36 +0100)
There is a break statement missing in a switch case statement.
Currently this does not have any side effects but to prevent wrong
behavior in the future this should be fixed.

Resolves: #79906
Releases: master
Change-Id: I2adf40adb1f8df5dcfcdb31f8e9ccddd2b885961
Reviewed-on: https://review.typo3.org/51759
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Mona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: Thomas Hohn <thomas@hohn.dk>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Form/FormDataProvider/TcaRecordTitle.php

index c2bdf41..ff94a90 100644 (file)
@@ -158,7 +158,10 @@ class TcaRecordTitle implements FormDataProviderInterface
                 $recordTitle = $this->getRecordTitleForRadioType($rawValue, $fieldConfig);
                 break;
             case 'inline':
-                $recordTitle = $this->getRecordTitleForInlineType($rawValue, $result['processedTca']['columns'][$fieldName]['children']);
+                $recordTitle = $this->getRecordTitleForInlineType(
+                    $rawValue,
+                    $result['processedTca']['columns'][$fieldName]['children']
+                );
                 break;
             case 'select':
                 $recordTitle = $this->getRecordTitleForSelectType($rawValue, $fieldConfig);
@@ -174,6 +177,7 @@ class TcaRecordTitle implements FormDataProviderInterface
                 break;
             case 'text':
                 $recordTitle = $this->getRecordTitleForTextType($rawValue);
+                break;
             case 'flex':
                 // @todo: Check if and how a label could be generated from flex field data
             default:
@@ -207,7 +211,6 @@ class TcaRecordTitle implements FormDataProviderInterface
     /**
      * @param int $value
      * @param array $children
-     *
      * @return string
      */
     protected function getRecordTitleForInlineType($value, array $children)