Allow to leave the enforceComments option empty

This commit is contained in:
Jan Böhmer 2025-07-06 22:08:10 +02:00
parent 423cdf6ca2
commit 2f2f4b2b3e

View file

@ -70,6 +70,7 @@ class HistorySettings
description: new TM("settings.system.history.enforceComments.description"),
options: ['type' => EnumType::class, 'nullable' => false, 'options' => ['class' => EventCommentType::class]],
formType: EnforceEventCommentTypesType::class,
formOptions: ['required' => false, "empty_data" => []],
envVar: "ENFORCE_CHANGE_COMMENTS_FOR", envVarMode: EnvVarMode::OVERWRITE, envVarMapper: [self::class, 'mapEnforceComments']
)]
public array $enforceComments = [];