fix updating entry status through API

This commit is contained in:
Thomas Citharel 2016-03-16 22:43:32 +01:00
parent 2f60e5ea75
commit 0cd0d6eb8c

View file

@ -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);