From: Cyperghost Date: Mon, 7 Oct 2024 06:09:31 +0000 (+0200) Subject: Set empty string as default value for `title`, this will be overwritten if `title... X-Git-Tag: 6.1.0_RC_1~11 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=08dc5c504b94629e02e830ba72e9af2354c1a9d5;p=GitHub%2FWoltLab%2FWCF.git Set empty string as default value for `title`, this will be overwritten if `title` is not multilingual. See https://www.woltlab.com/community/thread/308470-beta-2-multilinguale-kategorie-für-trophäen-erstellen-schlägt-fehl/ --- diff --git a/wcfsetup/install/files/lib/acp/form/CategoryAddFormBuilderForm.class.php b/wcfsetup/install/files/lib/acp/form/CategoryAddFormBuilderForm.class.php index 4dce0a74c7..28d0e7e418 100644 --- a/wcfsetup/install/files/lib/acp/form/CategoryAddFormBuilderForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/CategoryAddFormBuilderForm.class.php @@ -93,6 +93,13 @@ abstract class CategoryAddFormBuilderForm extends AbstractFormBuilderForm */ public $objectActionClass = CategoryAction::class; + /** + * @inheritDoc + */ + public $additionalFields = [ + 'title' => '', + ]; + /** * @inheritDoc */