Skip to content

Commit 68a81d8

Browse files
committed
3644: Removed empty if statement
1 parent d438ad9 commit 68a81d8

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

src/Controller/Admin/AnswerCrudController.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Doctrine\ORM\EntityManagerInterface;
99
use EasyCorp\Bundle\EasyAdminBundle\Config\Action;
1010
use EasyCorp\Bundle\EasyAdminBundle\Config\Actions;
11-
use EasyCorp\Bundle\EasyAdminBundle\Config\Crud;
1211
use EasyCorp\Bundle\EasyAdminBundle\Context\AdminContext;
1312
use EasyCorp\Bundle\EasyAdminBundle\Controller\AbstractCrudController;
1413
use EasyCorp\Bundle\EasyAdminBundle\Field\ChoiceField;
@@ -95,9 +94,6 @@ public function configureFields(string $pageName): iterable
9594
{
9695
$question = TextField::new('question')
9796
->setFormTypeOptions(['disabled' => true]);
98-
if (Crud::PAGE_NEW === $pageName) {
99-
// $question->setRequired(false);
100-
}
10197
yield $question;
10298
yield ChoiceField::new('smiley')
10399
->setTranslatableChoices([

0 commit comments

Comments
 (0)