General Info
Renaming a tag before saving creates an unusable tag
test1 into new Tagtest1 to test2test2 appears in Tag list)test2
Here's a network capture of the failed request and of the tag creation:
tag rename bug.har.zip
app-bbe0d239.js:8
POST https://habitica.com/api/v3/tasks/c696eb10-fb33-4fb9-b979-fb4ec0708660/tags/4368aab4-63f0-4920-b712-e450d0a944c6?userV=79 400 (Bad Request)
(anonymous function) @ app-bbe0d239.js:8
s @ app-bbe0d239.js:8
f @ app-bbe0d239.js:8
j @ app-bbe0d239.js:9
(anonymous function) @ app-bbe0d239.js:9
$eval @ app-bbe0d239.js:9
$digest @ app-bbe0d239.js:9
$apply @ app-bbe0d239.js:9
(anonymous function) @ app-bbe0d239.js:10
dispatch @ app-bbe0d239.js:4
r.handle @ app-bbe0d239.js:4
I got that error too when I tried to check a new tag I created into a task. But it worked once I refreshed the page.
Think the issue is in : /website/client/js/controllers/filtersCtrl.js
I'll take a look when I get the chance.
I believe this is related to #7820 and should be fixed by a PR I submitted. Either way, I think the root cause is the same and this could be closed and continued in #7820?
I've added this to the top post in #7820 :
The fix for this should also fix https://github.com/HabitRPG/habitrpg/issues/7806 or if that's not possible, https://github.com/HabitRPG/habitrpg/issues/7806 should be reopened.
Most helpful comment
I got that error too when I tried to check a new tag I created into a task. But it worked once I refreshed the page.