aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNicolas Loeuillet <nicosomb@MacBook-Pro-de-Nicolas.local>2016-03-21 14:06:07 +0100
committerNicolas Loeuillet <nicosomb@MacBook-Pro-de-Nicolas.local>2016-03-21 14:06:07 +0100
commit5a4ee4ae0fe7bed85fc68a9e96aee8bf5d1ee782 (patch)
tree6e2936d5afe1602f65cd6be4fa0e4b125817d103 /src
parent439b36323e37f669b056cc5228c44bb91196256c (diff)
downloadwallabag-5a4ee4ae0fe7bed85fc68a9e96aee8bf5d1ee782.tar.gz
wallabag-5a4ee4ae0fe7bed85fc68a9e96aee8bf5d1ee782.tar.zst
wallabag-5a4ee4ae0fe7bed85fc68a9e96aee8bf5d1ee782.zip
Split tags with commas from UI
Diffstat (limited to 'src')
-rw-r--r--src/Wallabag/CoreBundle/Controller/TagController.php10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/TagController.php b/src/Wallabag/CoreBundle/Controller/TagController.php
index 56e5195c..f31f4028 100644
--- a/src/Wallabag/CoreBundle/Controller/TagController.php
+++ b/src/Wallabag/CoreBundle/Controller/TagController.php
@@ -32,10 +32,16 @@ class TagController extends Controller
32 $em = $this->getDoctrine()->getManager(); 32 $em = $this->getDoctrine()->getManager();
33 33
34 if (is_null($existingTag)) { 34 if (is_null($existingTag)) {
35 $entry->addTag($tag); 35 $this->get('wallabag_core.content_proxy')->assignTagsToEntry(
36 $entry,
37 $tag
38 );
36 $em->persist($tag); 39 $em->persist($tag);
37 } elseif (!$existingTag->hasEntry($entry)) { 40 } elseif (!$existingTag->hasEntry($entry)) {
38 $entry->addTag($existingTag); 41 $this->get('wallabag_core.content_proxy')->assignTagsToEntry(
42 $entry,
43 $existingTag
44 );
39 $em->persist($existingTag); 45 $em->persist($existingTag);
40 } 46 }
41 47