From ab79c4c6c6edf72c52e370fa46505a6980e171a7 Mon Sep 17 00:00:00 2001 From: Manuel Raynaud Date: Thu, 20 Feb 2014 16:35:29 +0100 Subject: [PATCH] description is not required anymore in coupon form. Fix #233 --- core/lib/Thelia/Form/CouponCreationForm.php | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/core/lib/Thelia/Form/CouponCreationForm.php b/core/lib/Thelia/Form/CouponCreationForm.php index 9742f8fa0..279063329 100644 --- a/core/lib/Thelia/Form/CouponCreationForm.php +++ b/core/lib/Thelia/Form/CouponCreationForm.php @@ -65,21 +65,13 @@ class CouponCreationForm extends BaseForm ) ->add( 'shortDescription', - 'text', - array( - 'constraints' => array( - new NotBlank() - ) - ) + 'text' + ) ->add( 'description', - 'textarea', - array( - 'constraints' => array( - new NotBlank() - ) - ) + 'textarea' + ) ->add( 'type',