[BUGFIX] Remove manually set database row 09/53209/2
authorSusanne Moog <susanne.moog@typo3.com>
Wed, 14 Jun 2017 08:49:55 +0000 (10:49 +0200)
committerChristian Kuhn <lolli@schwarzbu.ch>
Wed, 14 Jun 2017 14:14:13 +0000 (16:14 +0200)
databaseRow should not be set incompletely in a
FormDataProvider or controller as subsequent
processing may rely on the complete database
row being set (for example language fields).

Resolves: #80855
Related: #80100
Release: master, 8.7, 7.6
Change-Id: I139b426c6598a93a2012cae088e3cbece4e1a83b
Reviewed-on: https://review.typo3.org/53209
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Christian Kuhn <lolli@schwarzbu.ch>
Tested-by: Christian Kuhn <lolli@schwarzbu.ch>
typo3/sysext/backend/Classes/Controller/FormInlineAjaxController.php
typo3/sysext/core/Configuration/DefaultConfiguration.php

index 7220404..da74766 100644 (file)
@@ -217,9 +217,6 @@ class FormInlineAjaxController extends AbstractFormEngineAjaxController
                     ],
                 ],
             ],
-            'databaseRow' => [
-                'uid' => (int)$parent['uid'],
-            ],
             'tableName' => $parent['table'],
             'inlineFirstPid' => $inlineFirstPid,
         ];
@@ -300,10 +297,6 @@ class FormInlineAjaxController extends AbstractFormEngineAjaxController
                 'vanillaUid' => (int)$parent['uid'],
                 'command' => 'edit',
                 'tableName' => $parent['table'],
-                'databaseRow' => [
-                    // TcaInlineExpandCollapseState needs this
-                    'uid' => (int)$parent['uid'],
-                ],
                 'processedTca' => $processedTca,
                 'inlineFirstPid' => $inlineFirstPid,
                 'columnsToProcess' => [
index 546745c..67f7aad 100644 (file)
@@ -442,6 +442,7 @@ return [
                     ],
                     \TYPO3\CMS\Backend\Form\FormDataProvider\TcaInlineExpandCollapseState::class => [
                         'depends' => [
+                            \TYPO3\CMS\Backend\Form\FormDataProvider\DatabaseEditRow::class,
                             \TYPO3\CMS\Backend\Form\FormDataProvider\TcaColumnsOverrides::class,
                         ],
                     ],