Can't create tags in topics of categories that have "Also allow other tags" enabled

I have a category that uses different tag groups and has the option “Also allow other tags” enabled. But when I write a new topic in this category and create a new tag in the editor, the tag seems to be assigned, but is not created in the end.

Hey @Krischan, can you provide more specifics here? Ideally screenshots of the category tag settings, the relevant tag groups (and their settings), and the composer preview before you create the post? That’ll help us test this out.

Hey Joshua, thanks for looking into this!

I have a category with three assigned tag groups:

image

Two of these can only be used by staff:

image
One can be used by everyone:

image

I also have the following setting enabled in the category settings, because there will be new tags created by staff which will later get assigned to one of the groups:

image

So when I create a new topic in this category (as an admin), I can assign tags from the three groups (eg Blockchain_beyond) and I also can create a new one:

image

… which gets added correctly:

image
But when I publish the topic the newly created tag is gone:

image

Hope, this makes sense!

3 Likes

So sorry for the delay, I forgot to assign this to myself so I lost track of it. I can reproduce this.

Repro Steps:

  1. Create a tag group, add at least 1 tag. Other settings do not appear to matter.
  2. Select a category, add the above tag group to the Restrict these tag groups to this category: category setting.
  3. Also check off Also allow other tags
  4. Create a topic, add tags.
  5. Note that any tags no in the restricted tag groups are allowed by the composer, but silently disappear when the topic is created.

Other notes: unchecking the Also allow other tags works as expected, tags not in the tag groups cannot be added within the composer.

4 Likes

The fix for this has been merged for a while. I just tested it again and works alright. :slight_smile:

https://github.com/discourse/discourse/pull/7722

5 Likes