Merge pull request #6985 from Simounet/fix/tag-controller-null-value

This commit is contained in:
Jérémy Benoist 2023-09-27 22:36:36 +02:00 committed by GitHub
commit 34e51243d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -45,7 +45,7 @@ class TagController extends AbstractController
$form = $this->createForm(NewTagType::class, new Tag());
$form->handleRequest($request);
$tags = $form->get('label')->getData();
$tags = $form->get('label')->getData() ?? '';
$tagsExploded = explode(',', $tags);
// avoid too much tag to be added