From: Nicolas Loeuillet Date: Mon, 21 Mar 2016 13:06:07 +0000 (+0100) Subject: Split tags with commas from UI X-Git-Tag: 2.0.0~7^2~1 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=5a4ee4ae0fe7bed85fc68a9e96aee8bf5d1ee782;p=github%2Fwallabag%2Fwallabag.git Split tags with commas from UI --- 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); }