From 5a4ee4ae0fe7bed85fc68a9e96aee8bf5d1ee782 Mon Sep 17 00:00:00 2001 From: Nicolas Loeuillet Date: Mon, 21 Mar 2016 14:06:07 +0100 Subject: [PATCH] Split tags with commas from UI --- src/Wallabag/CoreBundle/Controller/TagController.php | 10 ++++++++-- 1 file 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 $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); } -- 2.41.0