diff options
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller')
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/WallabagRestController.php | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index c5df1e03..459c4172 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php | |||
@@ -337,10 +337,6 @@ class WallabagRestController extends FOSRestController | |||
337 | ->getRepository('WallabagCoreBundle:Entry') | 337 | ->getRepository('WallabagCoreBundle:Entry') |
338 | ->removeTag($this->getUser()->getId(), $tag); | 338 | ->removeTag($this->getUser()->getId(), $tag); |
339 | 339 | ||
340 | $em = $this->getDoctrine()->getManager(); | ||
341 | $em->remove($tag); | ||
342 | $em->flush(); | ||
343 | |||
344 | $json = $this->get('serializer')->serialize($tag, 'json'); | 340 | $json = $this->get('serializer')->serialize($tag, 'json'); |
345 | 341 | ||
346 | return $this->renderJsonResponse($json); | 342 | return $this->renderJsonResponse($json); |