Skip to content

Commit

Permalink
Merge pull request #651 from BFoucher/article-author-required
Browse files Browse the repository at this point in the history
Article author is required
  • Loading branch information
paulandrieux authored Oct 26, 2016
2 parents edb1cbd + 71f12d1 commit 400972d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Bundle/BlogBundle/Form/ArticleType.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ public function buildForm(FormBuilderInterface $builder, array $options)
'multiple' => true,
])
->add('author', null, [
'label' => 'form.article.type.author.label',
'label' => 'form.article.type.author.label',
'required' => true,
])
->remove('visibleOnFront');

Expand Down

0 comments on commit 400972d

Please sign in to comment.