diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-01-15 15:47:13 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2016-01-15 15:47:13 +0100 |
commit | 86719c63bf47686ca55020e6b0443344de36d45a (patch) | |
tree | e985658fe7e6ae5c5f016417533a36dac4e80f50 /src/Wallabag/CoreBundle/Controller | |
parent | 1930c19d8214c05ceefac5ac011a6b6e7e4a983d (diff) | |
parent | 78833672469f7beb0c4a195aa0a76f7ca4133057 (diff) | |
download | wallabag-86719c63bf47686ca55020e6b0443344de36d45a.tar.gz wallabag-86719c63bf47686ca55020e6b0443344de36d45a.tar.zst wallabag-86719c63bf47686ca55020e6b0443344de36d45a.zip |
Merge pull request #1583 from wallabag/v2-fix-delete
Fix `findOneByUrl` side effect in tests
Diffstat (limited to 'src/Wallabag/CoreBundle/Controller')
-rw-r--r-- | src/Wallabag/CoreBundle/Controller/EntryController.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/Wallabag/CoreBundle/Controller/EntryController.php b/src/Wallabag/CoreBundle/Controller/EntryController.php index aa70307b..9dd904f1 100644 --- a/src/Wallabag/CoreBundle/Controller/EntryController.php +++ b/src/Wallabag/CoreBundle/Controller/EntryController.php | |||
@@ -49,8 +49,7 @@ class EntryController extends Controller | |||
49 | 49 | ||
50 | if ($form->isValid()) { | 50 | if ($form->isValid()) { |
51 | // check for existing entry, if it exists, redirect to it with a message | 51 | // check for existing entry, if it exists, redirect to it with a message |
52 | $existingEntry = $this->get('wallabag_core.entry_repository') | 52 | $existingEntry = $this->get('wallabag_core.entry_repository')->findByUrlAndUserId($entry->getUrl(), $this->getUser()->getId()); |
53 | ->existByUrlAndUserId($entry->getUrl(), $this->getUser()->getId()); | ||
54 | 53 | ||
55 | if (false !== $existingEntry) { | 54 | if (false !== $existingEntry) { |
56 | $this->get('session')->getFlashBag()->add( | 55 | $this->get('session')->getFlashBag()->add( |