Skip to content

Commit

Permalink
Merge pull request PrestaShop#34419 from gbelorgey/gb/unit-price-zero
Browse files Browse the repository at this point in the history
Allow unit price to be zero even when displayed
  • Loading branch information
nicosomb authored Oct 30, 2023
2 parents c0cfe79 + 5bfbe80 commit ef67551
Showing 1 changed file with 0 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
use Symfony\Component\Form\FormInterface;
use Symfony\Component\OptionsResolver\OptionsResolver;
use Symfony\Component\Validator\Constraints\NotBlank;
use Symfony\Component\Validator\Constraints\Positive;
use Symfony\Component\Validator\Constraints\PositiveOrZero;
use Symfony\Component\Validator\Constraints\Type;
use Symfony\Contracts\Translation\TranslatorInterface;
Expand Down Expand Up @@ -79,9 +78,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
new NotBlank(),
new Type(['type' => 'float']),
new PositiveOrZero(),
new Positive([
'groups' => [self::ENABLED_GROUP],
]),
],
'default_empty_data' => 0.0,
'modify_all_shops' => true,
Expand All @@ -95,9 +91,6 @@ public function buildForm(FormBuilderInterface $builder, array $options)
new NotBlank(),
new Type(['type' => 'float']),
new PositiveOrZero(),
new Positive([
'groups' => [self::ENABLED_GROUP],
]),
],
'default_empty_data' => 0.0,
'modify_all_shops' => true,
Expand Down

0 comments on commit ef67551

Please sign in to comment.