From: Yuriy Evdokimov Date: Wed, 18 May 2016 05:30:33 +0000 (+0500) Subject: Starred and Archived clears if article is already exists X-Git-Tag: 2.0.5~9^2~2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=873e3806585078222b31e0d24d0c6159c493727f;p=github%2Fwallabag%2Fwallabag.git Starred and Archived clears if article is already exists --- diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index 5202c524..b786d4ca 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php @@ -110,8 +110,8 @@ class WallabagRestController extends FOSRestController $url = $request->request->get('url'); $title = $request->request->get('title'); - $isArchived = (int) $request->request->get('archive'); - $isStarred = (int) $request->request->get('starred'); + $isArchived = $request->request->get('archive'); + $isStarred = $request->request->get('starred'); $entry = $this->get('wallabag_core.entry_repository')->findByUrlAndUserId($url, $this->getUser()->getId());