mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-01-15 14:49:33 +00:00
Match range assert and form limits in suggestPartDigits
This commit is contained in:
parent
6589e0d725
commit
11e4122029
1 changed files with 2 additions and 2 deletions
|
|
@ -64,10 +64,10 @@ class IpnSuggestSettings
|
||||||
|
|
||||||
#[SettingsParameter(label: new TM("settings.misc.ipn_suggest.suggestPartDigits"),
|
#[SettingsParameter(label: new TM("settings.misc.ipn_suggest.suggestPartDigits"),
|
||||||
description: new TM("settings.misc.ipn_suggest.suggestPartDigits.help"),
|
description: new TM("settings.misc.ipn_suggest.suggestPartDigits.help"),
|
||||||
formOptions: ['attr' => ['min' => 1, 'max' => 100]],
|
formOptions: ['attr' => ['min' => 1, 'max' => 8]],
|
||||||
envVar: "int:IPN_SUGGEST_PART_DIGITS", envVarMode: EnvVarMode::OVERWRITE
|
envVar: "int:IPN_SUGGEST_PART_DIGITS", envVarMode: EnvVarMode::OVERWRITE
|
||||||
)]
|
)]
|
||||||
#[Assert\Range(min: 1, max: 6)]
|
#[Assert\Range(min: 1, max: 8)]
|
||||||
public int $suggestPartDigits = 4;
|
public int $suggestPartDigits = 4;
|
||||||
|
|
||||||
#[SettingsParameter(
|
#[SettingsParameter(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue