[BUGFIX] Handle new record correctly in selectTree form element
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Controller / SelectTreeController.php
index f9adac9..4dac075 100644 (file)
@@ -44,7 +44,7 @@ class SelectTreeController
         $formDataCompilerInput = [
             'tableName' => $request->getQueryParams()['table'],
             'vanillaUid' => (int)$request->getQueryParams()['uid'],
-            'command' => 'edit',
+            'command' => $request->getQueryParams()['command'],
         ];
         $fieldName = $request->getQueryParams()['field'];
         $formData = $formDataCompiler->compile($formDataCompilerInput);