Fix parameters regarding documentation

Parameters are `star` & `archived`, not `is_starred` & `is_archived`
This commit is contained in:
Jeremy Benoist 2015-12-29 14:54:55 +01:00
parent fc73222723
commit 01fddd0cb2

View file

@ -174,8 +174,8 @@ class WallabagRestController extends FOSRestController
$this->validateUserAccess($entry->getUser()->getId()); $this->validateUserAccess($entry->getUser()->getId());
$title = $request->request->get('title'); $title = $request->request->get('title');
$isArchived = $request->request->get('is_archived'); $isArchived = $request->request->get('archive');
$isStarred = $request->request->get('is_starred'); $isStarred = $request->request->get('star');
if (!is_null($title)) { if (!is_null($title)) {
$entry->setTitle($title); $entry->setTitle($title);