Skip to content

Commit 2f2f4b2

Browse files
committed
Allow to leave the enforceComments option empty
1 parent 423cdf6 commit 2f2f4b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Settings/SystemSettings/HistorySettings.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ class HistorySettings
7070
description: new TM("settings.system.history.enforceComments.description"),
7171
options: ['type' => EnumType::class, 'nullable' => false, 'options' => ['class' => EventCommentType::class]],
7272
formType: EnforceEventCommentTypesType::class,
73+
formOptions: ['required' => false, "empty_data" => []],
7374
envVar: "ENFORCE_CHANGE_COMMENTS_FOR", envVarMode: EnvVarMode::OVERWRITE, envVarMapper: [self::class, 'mapEnforceComments']
7475
)]
7576
public array $enforceComments = [];

0 commit comments

Comments
 (0)