T3d upload fails if "Overwrite existing files" is unchecked
I want to upload a t3d file to be able to import it in my current master installation. This fails as long as the option "Overwrite existing files" is unchecked. Because fluid generates an empty hidden field for each checkbox, an empty value is transmitted.
On DuplicationBehavior::cast an exception is thrown because of the empty value.
[BUGFIX] Ensure proper conflictMode on t3d upload
The overwriteExistingFiles argument in ImportExportController can't be
cast to \TYPO3\CMS\Core\Resource\DuplicationBehavior due to an empty
value. This patch ensures a correct conflict mode which can be cast.
Reviewed-by: Wouter Wolters <email@example.com>
Tested-by: TYPO3com <firstname.lastname@example.org>
Reviewed-by: Georg Ringer <email@example.com>
Tested-by: Georg Ringer <firstname.lastname@example.org>