diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-12-15 22:18:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-12-15 22:18:45 +0100 |
commit | 24becc9717423748e6ef06c6cf1c499435af66b9 (patch) | |
tree | 9d6feb77e78d8318ebccc807356ff2d414892486 /src/Wallabag/ImportBundle/Controller/BrowserController.php | |
parent | 15cc1838501955638f3ac6e0fb3235bb6ac4e26c (diff) | |
parent | 6ad8aabb83581fdc978d0cea81be8e776a3b7198 (diff) | |
download | wallabag-24becc9717423748e6ef06c6cf1c499435af66b9.tar.gz wallabag-24becc9717423748e6ef06c6cf1c499435af66b9.tar.zst wallabag-24becc9717423748e6ef06c6cf1c499435af66b9.zip |
Merge pull request #2667 from wallabag/upgrade-symfony-32
Upgrade to Symfony 3.2
Diffstat (limited to 'src/Wallabag/ImportBundle/Controller/BrowserController.php')
-rw-r--r-- | src/Wallabag/ImportBundle/Controller/BrowserController.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Wallabag/ImportBundle/Controller/BrowserController.php b/src/Wallabag/ImportBundle/Controller/BrowserController.php index 144a4880..e119098f 100644 --- a/src/Wallabag/ImportBundle/Controller/BrowserController.php +++ b/src/Wallabag/ImportBundle/Controller/BrowserController.php | |||
@@ -39,7 +39,7 @@ abstract class BrowserController extends Controller | |||
39 | $wallabag = $this->getImportService(); | 39 | $wallabag = $this->getImportService(); |
40 | $wallabag->setUser($this->getUser()); | 40 | $wallabag->setUser($this->getUser()); |
41 | 41 | ||
42 | if ($form->isValid()) { | 42 | if ($form->isSubmitted() && $form->isValid()) { |
43 | $file = $form->get('file')->getData(); | 43 | $file = $form->get('file')->getData(); |
44 | $markAsRead = $form->get('mark_as_read')->getData(); | 44 | $markAsRead = $form->get('mark_as_read')->getData(); |
45 | $name = $this->getUser()->getId().'.json'; | 45 | $name = $this->getUser()->getId().'.json'; |