[BUGFIX] IRRE creates new records when using foreign_selector
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Form / Element / InlineElement.php
index 07cc6d3..5d1d7f6 100644 (file)
@@ -1117,7 +1117,7 @@ class InlineElement {
                // Put the current level also to the dynNestedStack of TCEforms:
                $this->fObj->pushToDynNestedStack('inline', $this->inlineNames['object']);
                // Dynamically create a new record using \TYPO3\CMS\Backend\Form\DataPreprocessor
-               if (!$foreignUid || !MathUtility::canBeInterpretedAsInteger($foreignUid) || $config['foreign_selector']) {
+               if (!$foreignUid || !MathUtility::canBeInterpretedAsInteger($foreignUid)) {
                        $record = $this->getNewRecord($this->inlineFirstPid, $current['table']);
                        // Set default values for new created records
                        if (isset($config['foreign_record_defaults']) && is_array($config['foreign_record_defaults'])) {