[BUGFIX] Prevent empty new form from being closed without confirmation
[Packages/TYPO3.CMS.git] / typo3 / sysext / backend / Classes / Form / Container / OuterWrapContainer.php
index f6195a7..a9e7239 100644 (file)
@@ -144,7 +144,8 @@ class OuterWrapContainer extends AbstractContainer
             'childHtml' => $childHtml,
             'icon' => $icon,
             'tableTitle' => $tableTitle,
-            'newOrUid' => $newOrUid
+            'newOrUid' => $newOrUid,
+            'isNewRecord' => $this->data['command'] === 'new'
         ]);
         $result['html'] = $view->render();
         return $result;