Difficulty reusing purged category handles
-
So, I'm playing around with forum structure, and I purged a category with the hope of just clearing it out and reusing it. Unfortunately, purging it from the forum doesn't seem to have cleaned up the namespace. I'm not familiar with mongodb or nosql, but from the limited exploration I've managed to do, the category handle isn't showing up.
Is there a trick to clearing the name space?
-
@Kichae what do you mean, you're not able to use the category handle in a new category anymore?
-
Yup, exactly. If I create a new category with the same name, it will append a random ID string to the end of the handle. Trying to truncate it back to the original will trigger the following error:
> Category handle is already taken, please choose another.
-
@Kichae thanks, sounds like a bug, please report on GitHub.
-
Will do!
-
In the meantime, you can go into your database, and delete the faulty record in the
categoryhandle:cid
sorted set.db.objects.deleteOne({ _key: "categoryhandle:cid", value: "yourhandle" });
... or something like this.I take no responsibility if the mongodb command is faulty
-
Thanks @baris!