mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-12 19:34:31 +02:00
Allow to leave the enforceComments option empty
This commit is contained in:
parent
423cdf6ca2
commit
2f2f4b2b3e
1 changed files with 1 additions and 0 deletions
|
@ -70,6 +70,7 @@ class HistorySettings
|
||||||
description: new TM("settings.system.history.enforceComments.description"),
|
description: new TM("settings.system.history.enforceComments.description"),
|
||||||
options: ['type' => EnumType::class, 'nullable' => false, 'options' => ['class' => EventCommentType::class]],
|
options: ['type' => EnumType::class, 'nullable' => false, 'options' => ['class' => EventCommentType::class]],
|
||||||
formType: EnforceEventCommentTypesType::class,
|
formType: EnforceEventCommentTypesType::class,
|
||||||
|
formOptions: ['required' => false, "empty_data" => []],
|
||||||
envVar: "ENFORCE_CHANGE_COMMENTS_FOR", envVarMode: EnvVarMode::OVERWRITE, envVarMapper: [self::class, 'mapEnforceComments']
|
envVar: "ENFORCE_CHANGE_COMMENTS_FOR", envVarMode: EnvVarMode::OVERWRITE, envVarMapper: [self::class, 'mapEnforceComments']
|
||||||
)]
|
)]
|
||||||
public array $enforceComments = [];
|
public array $enforceComments = [];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue