]> git.immae.eu Git - github/wallabag/wallabag.git/commit
TagController: fix duplicated tags when renaming them
authorKevin Decherf <kevin@kdecherf.com>
Sat, 4 Apr 2020 19:03:22 +0000 (21:03 +0200)
committerKevin Decherf <kevin@kdecherf.com>
Sat, 18 Apr 2020 16:09:07 +0000 (18:09 +0200)
commit39133eb796996701228501f898b4ef33af8e0fdb
tree798462f6e154bf4b5c0f2a17c750a849984b47a6
parentf3565ea2bf24454a4cdda767b3d2c7d5cd0fd51e
TagController: fix duplicated tags when renaming them

The fix relies on a workaround available on TagsAssigner, see the
AssignTagsToEntry() signature for detail.

I replaced the findOneByLabel in the corresponding test to assert that
there is no duplicate.

Fixes #4216

Signed-off-by: Kevin Decherf <kevin@kdecherf.com>
src/Wallabag/CoreBundle/Controller/TagController.php
tests/Wallabag/CoreBundle/Controller/TagControllerTest.php