From 0cd0d6eb8c5a7a6ba04f1086b16f9612acbc9b68 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Wed, 16 Mar 2016 22:43:32 +0100 Subject: [PATCH] fix updating entry status through API --- .../ApiBundle/Controller/WallabagRestController.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php index d0a35013..a590dda1 100644 --- a/src/Wallabag/ApiBundle/Controller/WallabagRestController.php +++ b/src/Wallabag/ApiBundle/Controller/WallabagRestController.php @@ -126,13 +126,9 @@ class WallabagRestController extends FOSRestController $this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags); } - if (true === (bool) $isStarred) { - $entry->setStarred(true); - } + $entry->setStarred((bool) $isStarred); - if (true === (bool) $isArchived) { - $entry->setArchived(true); - } + $entry->setArchived((bool) $isArchived); $em = $this->getDoctrine()->getManager(); $em->persist($entry); -- 2.41.0