From 6e10b8516bb9544e5cdc212a9eac1b8ce43d756f Mon Sep 17 00:00:00 2001 From: Bob den Otter Date: Tue, 21 Jun 2022 15:22:02 +0200 Subject: [PATCH] Additional fix for `type: number` field, set default to `min: 0`. --- src/Configuration/Content/FieldType.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Configuration/Content/FieldType.php b/src/Configuration/Content/FieldType.php index 897f79976..63c427340 100644 --- a/src/Configuration/Content/FieldType.php +++ b/src/Configuration/Content/FieldType.php @@ -54,7 +54,7 @@ protected static function defaults(): Collection 'maxlength' => '', 'autocomplete' => true, 'values' => [], - 'min' => 1, + 'min' => 0, 'max' => 1000, ]); }