Closed kedaroh-bh closed 5 months ago
Hi, good find! I think the filter is wrong and the allowedTags.includes should not be negated like it is now. Do you have possibility to try it out with that change and perhaps submit a PR? I can take a look once I am back from easter vacation next week some time.
Hi @drodil, I saw your reply today and looks like you fixed it already, thank you.
Description: I have a requirement that we don't want end user to create new tag and they can choose only from predefined tags, so I have configured allowedTags to few pre-defined tags and set the allowCreation to false. However when I attach/select a tag on Ask Question form and post the question the tag is not showing on question.
Steps to reproduce:
Attached screenshot question "test5"
However if I set allowCreation to true and add few tags in tags table manually and then post a question with tag then it working fine, screenshot question "test4"
Findings: in plugins\qeta-backend\src\service\routes\questions.ts getTags method below line is filtering out the selected tag when allowCreation is false.