[BUGFIX] Do not open EditDocumentController in modal
If `mod.web_layout.disableNewContentElementWizard=1` is set, the
"New Content Element" wizard is skipped and EditDocumentController's
FormEngine is called directly.
In that case, the modal must not get opened as this doesn't work in
combination with FormEngine.
Resolves: #88075
Releases: master, 9.5
Change-Id: Idada95f426496b49131463ec1d0e8462df163e70
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/60627
Tested-by: TYPO3com <noreply@typo3.com>
Tested-by: Joerg Kummer <typo3@enobe.de>
Tested-by: Guido Schmechel <guido.schmechel@brandung.de>
Tested-by: Susanne Moog <look@susi.dev>
Reviewed-by: Markus Klein <markus.klein@typo3.org>
Reviewed-by: Susanne Moog <look@susi.dev>