1
0
Fork 0
mirror of https://github.com/wallabag/wallabag.git synced 2025-07-12 16:58:37 +00:00

Fix tests & deprecation notice

This commit is contained in:
Jeremy Benoist 2016-12-14 11:54:30 +01:00
parent 202a66ce02
commit 21e7ccef3d
No known key found for this signature in database
GPG key ID: BCA73962457ACC3C
11 changed files with 25 additions and 21 deletions

View file

@ -42,7 +42,7 @@ class DeveloperController extends Controller
$clientForm = $this->createForm(ClientType::class, $client);
$clientForm->handleRequest($request);
if ($clientForm->isValid()) {
if ($clientForm->isSubmitted() && $clientForm->isValid()) {
$client->setAllowedGrantTypes(['token', 'authorization_code', 'password', 'refresh_token']);
$em->persist($client);
$em->flush();