From: Jérémy Benoist Date: Sun, 10 Dec 2017 12:33:23 +0000 (+0100) Subject: Merge pull request #3465 from wallabag/fix-tests X-Git-Tag: 2.3.0~5 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=e9a4231d4f39c5d330d581113f577ff3ef1a3cf9;hp=55bd59962c41b4ee34fde2569ddf093e5ad71fd8;p=github%2Fwallabag%2Fwallabag.git Merge pull request #3465 from wallabag/fix-tests Fix bad key matching --- diff --git a/src/Wallabag/ApiBundle/Controller/UserRestController.php b/src/Wallabag/ApiBundle/Controller/UserRestController.php index a1378fc5..3a4dafcd 100644 --- a/src/Wallabag/ApiBundle/Controller/UserRestController.php +++ b/src/Wallabag/ApiBundle/Controller/UserRestController.php @@ -77,7 +77,7 @@ class UserRestController extends WallabagRestController $view->setFormat('json'); // handle errors in a more beautiful way than the default view - $data = json_decode($this->handleView($view)->getContent(), true)['children']; + $data = json_decode($this->handleView($view)->getContent(), true)['errors']['children']; $errors = []; if (isset($data['username']['errors'])) {