aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/ApiBundle
diff options
context:
space:
mode:
authorYuriy Evdokimov <rurik19@yandex.ru>2016-05-18 10:55:37 +0500
committerYuriy Evdokimov <rurik19@yandex.ru>2016-05-18 15:28:49 +0500
commit614a0bfd86fe392bd11f5866a9ff7a966e10198a (patch)
tree421ce9268b4921e7c1a89e44cbd2898fba1c5e5a /src/Wallabag/ApiBundle
parent873e3806585078222b31e0d24d0c6159c493727f (diff)
downloadwallabag-614a0bfd86fe392bd11f5866a9ff7a966e10198a.tar.gz
wallabag-614a0bfd86fe392bd11f5866a9ff7a966e10198a.tar.zst
wallabag-614a0bfd86fe392bd11f5866a9ff7a966e10198a.zip
PATCH also clears starred and archived signs
Diffstat (limited to 'src/Wallabag/ApiBundle')
-rw-r--r--src/Wallabag/ApiBundle/Controller/WallabagRestController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
index b786d4ca..af24e498 100644
--- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
+++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php
@@ -172,8 +172,8 @@ class WallabagRestController extends FOSRestController
172 $this->validateUserAccess($entry->getUser()->getId()); 172 $this->validateUserAccess($entry->getUser()->getId());
173 173
174 $title = $request->request->get('title'); 174 $title = $request->request->get('title');
175 $isArchived = (int) $request->request->get('archive'); 175 $isArchived = $request->request->get('archive');
176 $isStarred = (int) $request->request->get('starred'); 176 $isStarred = $request->request->get('starred');
177 177
178 if (!is_null($title)) { 178 if (!is_null($title)) {
179 $entry->setTitle($title); 179 $entry->setTitle($title);