seo title field is not mandatory anymore

This commit is contained in:
Manuel Raynaud
2014-04-30 11:15:01 +02:00
parent dc286e3c23
commit a30181d09d

View File

@@ -44,13 +44,11 @@ trait SeoFieldsTrait
if (! in_array('meta_title', $exclude)) if (! in_array('meta_title', $exclude))
$this->formBuilder $this->formBuilder
->add('meta_title', 'text', array( ->add('meta_title', 'text', array(
'constraints' => array(
new NotBlank()
),
'label' => Translator::getInstance()->trans('Page Title'), 'label' => Translator::getInstance()->trans('Page Title'),
'label_attr' => array( 'label_attr' => array(
'for' => 'meta_title' 'for' => 'meta_title'
) ),
'required' => false
) )
); );