]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
Split tags with commas from UI
authorNicolas Loeuillet <nicosomb@MacBook-Pro-de-Nicolas.local>
Mon, 21 Mar 2016 13:06:07 +0000 (14:06 +0100)
committerNicolas Loeuillet <nicosomb@MacBook-Pro-de-Nicolas.local>
Mon, 21 Mar 2016 13:06:07 +0000 (14:06 +0100)
src/Wallabag/CoreBundle/Controller/TagController.php

index 56e5195c1fc0075af5d9896416a5c9f5e5965ee3..f31f4028c217b0d9ba05862b8bcc7177b82dee5f 100644 (file)
@@ -32,10 +32,16 @@ class TagController extends Controller
             $em = $this->getDoctrine()->getManager();
 
             if (is_null($existingTag)) {
-                $entry->addTag($tag);
+                $this->get('wallabag_core.content_proxy')->assignTagsToEntry(
+                    $entry,
+                    $tag
+                );
                 $em->persist($tag);
             } elseif (!$existingTag->hasEntry($entry)) {
-                $entry->addTag($existingTag);
+                $this->get('wallabag_core.content_proxy')->assignTagsToEntry(
+                    $entry,
+                    $existingTag
+                );
                 $em->persist($existingTag);
             }