From 2dcce7b826304e7ac227b02b1d92c50b29920179 Mon Sep 17 00:00:00 2001 From: Julie Lenaerts Date: Tue, 25 Feb 2025 15:29:45 +0100 Subject: [PATCH] Remove dumps --- .../ChillActivityBundle/Controller/ActivityController.php | 1 - .../ChillActivityBundle/Resources/views/Activity/new.html.twig | 1 - src/Bundle/ChillMainBundle/Form/Type/CommentType.php | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Bundle/ChillActivityBundle/Controller/ActivityController.php b/src/Bundle/ChillActivityBundle/Controller/ActivityController.php index 9c9c9128d..f248c6559 100644 --- a/src/Bundle/ChillActivityBundle/Controller/ActivityController.php +++ b/src/Bundle/ChillActivityBundle/Controller/ActivityController.php @@ -447,7 +447,6 @@ final class ActivityController extends AbstractController } if (\array_key_exists('comment', $activityData) && $activityType->getCommentVisible() > 0) { - dump($activityData['comment']); $comment = new CommentEmbeddable(); $comment->setComment($activityData['comment']); $comment->setUserId($this->security->getUser()->getId()); diff --git a/src/Bundle/ChillActivityBundle/Resources/views/Activity/new.html.twig b/src/Bundle/ChillActivityBundle/Resources/views/Activity/new.html.twig index 8590d79b9..add90e4c7 100644 --- a/src/Bundle/ChillActivityBundle/Resources/views/Activity/new.html.twig +++ b/src/Bundle/ChillActivityBundle/Resources/views/Activity/new.html.twig @@ -122,7 +122,6 @@ {% block js %} {{ encore_entry_script_tags('mod_pickentity_type') }} - {{ encore_entry_script_tags('vue_comment_editor') }} {% endblock %} {% block css %} diff --git a/src/Bundle/ChillMainBundle/Form/Type/CommentType.php b/src/Bundle/ChillMainBundle/Form/Type/CommentType.php index f12de11b0..2b1d2f3e0 100644 --- a/src/Bundle/ChillMainBundle/Form/Type/CommentType.php +++ b/src/Bundle/ChillMainBundle/Form/Type/CommentType.php @@ -43,7 +43,7 @@ class CommentType extends AbstractType $builder->addEventListener(FormEvents::PRE_SUBMIT, function (FormEvent $event) { $data = $event->getForm()->getData(); - $comment = ['comment' => $event->getData()] ?? ['comment' => '']; + $comment = $event->getData() ?? ['comment' => '']; if (null !== $data && $data->getComment() !== $comment['comment']) { $data->setDate(new \DateTime());