[BUGFIX] Fix unused var and typo in FormInlineAjaxController.php 82/43982/2
authorMathias Schreiber <mathias.schreiber@wmdb.de>
Sun, 11 Oct 2015 13:21:47 +0000 (15:21 +0200)
committerAnja Leichsenring <aleichsenring@ab-softlab.de>
Sun, 11 Oct 2015 13:32:13 +0000 (15:32 +0200)
Resolves: #70582
Releases: master
Change-Id: Ifcea8892df60d4cff4ac9148c706488b3995f57e
Reviewed-on: http://review.typo3.org/43982
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Wouter Wolters <typo3@wouterwolters.nl>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
typo3/sysext/backend/Classes/Controller/FormInlineAjaxController.php

index 8e9dc34..1e02420 100644 (file)
@@ -456,8 +456,7 @@ class FormInlineAjaxController
                 $jsonArray['scriptCall'][] = 'inline.memorizeAddRecord(' . GeneralUtility::quoteJSvalue($nameObjectForeignTable) . ', ' . GeneralUtility::quoteJSvalue($childUid) . ', null, ' . $selectedValue . ');';
                 // Remove possible virtual records in the form which showed that a child records could be localized:
                 $transOrigPointerFieldName = $GLOBALS['TCA'][$childData['table']]['ctrl']['transOrigPointerField'];
-                $transOrigPointerField = false;
-                if (isset($childData['databaseRow'][$transOrigPointerFieldName]) && $childData['dataabaseRow'][$transOrigPointerFieldName]) {
+                if (isset($childData['databaseRow'][$transOrigPointerFieldName]) && $childData['databaseRow'][$transOrigPointerFieldName]) {
                     $transOrigPointerField = $childData['databaseRow'][$transOrigPointerFieldName];
                     if (is_array($transOrigPointerField)) {
                         $transOrigPointerField = $transOrigPointerField[0];