Skip to content
Snippets Groups Projects
Commit 95205e5a authored by Sascha Egerer's avatar Sascha Egerer Committed by Christian Kuhn
Browse files

[BUGFIX] Add missing break statement in switch case

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: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarMona Muzaffar <mona.muzaffar@gmx.de>
Reviewed-by: default avatarThomas Hohn <thomas@hohn.dk>
Reviewed-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
Tested-by: default avatarChristian Kuhn <lolli@schwarzbu.ch>
parent afca099a
Branches
Tags
No related merge requests found
......@@ -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)
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment