]> git.immae.eu Git - github/wallabag/wallabag.git/commit
Multiple tag search was broken from API
authorJeremy Benoist <jeremy.benoist@gmail.com>
Thu, 3 Aug 2017 10:46:20 +0000 (12:46 +0200)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Wed, 6 Sep 2017 20:49:15 +0000 (22:49 +0200)
commit7c04b7396a296e31bb11beadc19550396ee728a8
tree907da35635e18957fc981cb6d53b98dd6040290c
parent78b36d4dbeedd60c5aa25dbd30a2a2d41a658f94
Multiple tag search was broken from API

First, the setParameter() were done on the same parameter which in fact
just duplicated the condition in the SQL query (like `where t.label =
'test' and t.label = 'test'`.

Changed the parameter doesn't help because the query was then wrong.

Changing the way to match associated tags for an entry and it worked.
src/Wallabag/CoreBundle/DataFixtures/ORM/LoadTagData.php
src/Wallabag/CoreBundle/Repository/EntryRepository.php
tests/Wallabag/ApiBundle/Controller/EntryRestControllerTest.php
tests/Wallabag/CoreBundle/Controller/ExportControllerTest.php
tests/Wallabag/CoreBundle/Controller/RssControllerTest.php