]> git.immae.eu Git - github/wallabag/wallabag.git/blobdiff - src/Wallabag/CoreBundle/Controller/TagController.php
Fix tests & deprecation notice
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Controller / TagController.php
index a3e70fd0aeabf2661d15560b1e40142836fd2357..52707cb8311dae23222d7451ac35ec48ab7d33ae 100644 (file)
@@ -27,7 +27,7 @@ class TagController extends Controller
         $form = $this->createForm(NewTagType::class, new Tag());
         $form->handleRequest($request);
 
-        if ($form->isValid()) {
+        if ($form->isSubmitted() && $form->isValid()) {
             $this->get('wallabag_core.content_proxy')->assignTagsToEntry(
                 $entry,
                 $form->get('label')->getData()