**fix:** add min and step attributes to integer field in DateIntervalType

This commit is contained in:
Julie Lenaerts 2025-08-06 17:34:53 +02:00
parent 2754251fdc
commit aa085a1562
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,6 @@
kind: Fixed
body: add min and step attributes to integer field in DateIntervalType
time: 2025-08-06T17:35:27.413787704+02:00
custom:
Issue: "384"
SchemaChange: No schema change

View File

@ -55,6 +55,10 @@ class DateIntervalType extends AbstractType
{
$builder
->add('n', IntegerType::class, [
'attr' => [
'min' => 0,
'step' => 1,
],
'constraints' => [
new GreaterThan([
'value' => 0,