case 4763 - backup sets to keep must be at least 1

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-31 16:11:21 -07:00
parent 6192821a33
commit 0aaf5a2ca6

View File

@@ -39,7 +39,10 @@
dense
:readonly="formState.readOnly"
:label="$sock.t('BackupSetsToKeep')"
:rules="[form().integerValid(this, 'backupSetsToKeep')]"
:rules="[
form().integerValid(this, 'backupSetsToKeep'),
form().minValueValid(this, 'backupSetsToKeep', 1)
]"
:error-messages="form().serverErrors(this, 'backupSetsToKeep')"
type="number"
@input="fieldValueChanged('backupSetsToKeep')"