Skip to content

Commit

Permalink
Do not allow null values for number of last releases when updating (#302
Browse files Browse the repository at this point in the history
)
  • Loading branch information
karniv00l authored Oct 15, 2020
1 parent 1b26aad commit 435a099
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Form/Type/Api/EditPackageType.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
'label' => 'Keep last releases',
'help' => 'Number of last releases that will be downloaded. Put "0" to download all.',
'constraints' => [
new NotBlank(),
new PositiveOrZero(),
],
]);
Expand Down
1 change: 1 addition & 0 deletions src/Form/Type/Organization/EditPackageType.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ public function buildForm(FormBuilderInterface $builder, array $options): void
'label' => 'Keep last releases',
'help' => 'Number of last releases that will be downloaded. Put "0" to download all.',
'constraints' => [
new NotBlank(),
new PositiveOrZero(),
],
])
Expand Down

0 comments on commit 435a099

Please sign in to comment.