diff options
author | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-12-14 11:54:30 +0100 |
---|---|---|
committer | Jeremy Benoist <jeremy.benoist@gmail.com> | 2016-12-15 21:38:16 +0100 |
commit | 21e7ccef3d960f4747d58fc0c9e081618e9451eb (patch) | |
tree | 295c0af56ecaaf9202618d14b67244da373e5f99 /src/Wallabag/ApiBundle/Controller | |
parent | 202a66ce02bf42743e66fbc1ea1dbfe5b6a1c83a (diff) | |
download | wallabag-21e7ccef3d960f4747d58fc0c9e081618e9451eb.tar.gz wallabag-21e7ccef3d960f4747d58fc0c9e081618e9451eb.tar.zst wallabag-21e7ccef3d960f4747d58fc0c9e081618e9451eb.zip |
Fix tests & deprecation notice
Diffstat (limited to 'src/Wallabag/ApiBundle/Controller')
-rw-r--r-- | src/Wallabag/ApiBundle/Controller/DeveloperController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/ApiBundle/Controller/DeveloperController.php b/src/Wallabag/ApiBundle/Controller/DeveloperController.php index 550c0608..9cb1b626 100644 --- a/src/Wallabag/ApiBundle/Controller/DeveloperController.php +++ b/src/Wallabag/ApiBundle/Controller/DeveloperController.php | |||
@@ -42,7 +42,7 @@ class DeveloperController extends Controller | |||
42 | $clientForm = $this->createForm(ClientType::class, $client); | 42 | $clientForm = $this->createForm(ClientType::class, $client); |
43 | $clientForm->handleRequest($request); | 43 | $clientForm->handleRequest($request); |
44 | 44 | ||
45 | if ($clientForm->isValid()) { | 45 | if ($clientForm->isSubmitted() && $clientForm->isValid()) { |
46 | $client->setAllowedGrantTypes(['token', 'authorization_code', 'password', 'refresh_token']); | 46 | $client->setAllowedGrantTypes(['token', 'authorization_code', 'password', 'refresh_token']); |
47 | $em->persist($client); | 47 | $em->persist($client); |
48 | $em->flush(); | 48 | $em->flush(); |