mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-03-07 07:48:10 +01:00
Allow to leave the enforceComments option empty
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user