Skip to content
This repository was archived by the owner on Oct 15, 2025. It is now read-only.

Commit 768c362

Browse files
committed
feat(feedback): Allow pre-filling description
1 parent 78fe93b commit 768c362

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Controller/FeedbackController.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,18 @@ public function index(
2323
EntityManagerInterface $entityManager,
2424
#[CurrentUser] ?User $user,
2525
#[MapQueryParameter] string $url,
26+
#[MapQueryParameter] ?string $description = null,
2627
): Response {
2728
$feedback = (new Feedback())
2829
->setSender($user)
2930
->setMetadata([
3031
'url' => $url,
3132
]);
3233

34+
if (null !== $description) {
35+
$feedback->setDescription($description);
36+
}
37+
3338
$form = $this->createForm(FeedbackFormType::class, $feedback);
3439
$form = $form->handleRequest($request);
3540

0 commit comments

Comments
 (0)