fix embeddableComment field, but still cannot be null and date+user_id are not set...?

This commit is contained in:
Julie Lenaerts 2022-01-20 17:14:14 +01:00
parent ec155b1d67
commit 450792e446

View File

@ -13,6 +13,7 @@ namespace Chill\PersonBundle\Form;
use Chill\AsideActivityBundle\Templating\Entity\CategoryRender;
use Chill\MainBundle\Form\Type\ChillTextareaType;
use Chill\MainBundle\Form\Type\CommentType;
use Chill\PersonBundle\Entity\Person;
use Chill\PersonBundle\Entity\Person\PersonResource;
use Chill\PersonBundle\Entity\Person\PersonResourceKind;
@ -46,7 +47,7 @@ final class PersonResourceType extends AbstractType
$builder
->add('kind', EntityType::class, [
'label' => 'Type',
'required' => true,
'required' => false,
'class' => PersonResourceKind::class,
'query_builder' => static function (EntityRepository $er) {
$qb = $er->createQueryBuilder('pr');
@ -80,7 +81,7 @@ final class PersonResourceType extends AbstractType
'label' => 'Description libre',
'required' => false
])
->add('comment', ChillTextareaType::class, [
->add('comment', CommentType::class, [
'label' => 'Note',
'required' => false
]);