diff options
author | Thomas Citharel <tcit@tcit.fr> | 2016-03-16 22:43:32 +0100 |
---|---|---|
committer | Thomas Citharel <tcit@tcit.fr> | 2016-03-16 22:43:32 +0100 |
commit | 0cd0d6eb8c5a7a6ba04f1086b16f9612acbc9b68 (patch) | |
tree | 25953e51343c49c6e89e9d819ed42e3933887b17 /src/Wallabag | |
parent | 2f60e5ea7566e4b2904f274bc94efea390d9ecd8 (diff) | |
download | wallabag-0cd0d6eb8c5a7a6ba04f1086b16f9612acbc9b68.tar.gz wallabag-0cd0d6eb8c5a7a6ba04f1086b16f9612acbc9b68.tar.zst wallabag-0cd0d6eb8c5a7a6ba04f1086b16f9612acbc9b68.zip |
fix updating entry status through API
Diffstat (limited to 'src/Wallabag')
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/WallabagRestController.php | 8 |
1 files 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 | |||
126 | $this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags); | 126 | $this->get('wallabag_core.content_proxy')->assignTagsToEntry($entry, $tags); |
127 | } | 127 | } |
128 | 128 | ||
129 | if (true === (bool) $isStarred) { | 129 | $entry->setStarred((bool) $isStarred); |
130 | $entry->setStarred(true); | ||
131 | } | ||
132 | 130 | ||
133 | if (true === (bool) $isArchived) { | 131 | $entry->setArchived((bool) $isArchived); |
134 | $entry->setArchived(true); | ||
135 | } | ||
136 | 132 | ||
137 | $em = $this->getDoctrine()->getManager(); | 133 | $em = $this->getDoctrine()->getManager(); |
138 | $em->persist($entry); | 134 | $em->persist($entry); |