Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix TermTaxonomy attributes sanitizing to not remove translation tags #1091

Merged
merged 2 commits into from
Aug 23, 2024

Conversation

texpert
Copy link
Collaborator

@texpert texpert commented Aug 22, 2024

Sanitization of the TermTaxonomy attributes were surprizingly removing translation tags.

So, instead of a <!--:en-->Vineyards<!--:--><!--:ru-->Виноградники<!--:--><!--:md-->Podgorii<!--:--> attr value, the VineyardsВиноградникиPodgorii was stored into the DB.

This PR fixes the issue, hiding the translation tags before sanitizing them, and restoring them afterwards.

@texpert texpert force-pushed the dont-sanitize-translation-tags branch from 351a390 to 327b487 Compare August 23, 2024 18:20
@texpert texpert merged commit c62f703 into owen2345:master Aug 23, 2024
16 checks passed
@texpert texpert deleted the dont-sanitize-translation-tags branch September 16, 2024 19:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants