Can't create new tag and change category at the same time

AI-generated summary

The discussion revolves around an issue where users cannot create a new tag and change the category of a topic simultaneously, receiving an error message about disallowed tags. nathank reported the problem, noting it only occurs with new tags, not existing ones. codinghorror could not reproduce it initially but acknowledged the issue after more details were provided. neil identified and fixed the bug, with the fix confirmed by j.jaffeux. The title was updated to reflect the specific nature of the issue.

When I change the category a topic is in (via the edit topic title thingo) I am finding that I cannot also tag. If I try, I get the message “this topic has tags that aren’t allowed” - when this is not the case.

My workaround is to save the category change, and then re-open the edit topic title thingo, and then add the tags. It works just fine then. Neither category limit tags in any way.

This is very similar (or even the same) as:

Can you reproduce it? Happy to do a video if you like.

7 likes

Hi, yes I can imagine how it happens, will have a look at this by end of next week.

6 likes

Hmm, I just changed this from Contribute > Bug to Support and added the “feedback” tag at the same time, in the same edit. No repro. Can you give me more specifics please?

6 likes

Worked it out:

It only happens when the tag doesn’t yet exist. I can change categories and tag with an existing tag, but not with a new tag.

A bit similar to this, eh?

4 likes

Thanks, I have edited the title to be more specific! :handshake:

5 likes

I’ll be looking at this @nathank. It’s a tricky one.

Actually, not so tricky. I made a fix just now.

https://github.com/discourse/discourse/commit/29e733832d7f95669310a662594ca53b07938f38

5 likes

This should be fixed @nathank, thanks to @neil

Let us know if it doesnt fix the issue.

3 likes