Hi,
consider importing countries in different langauges and creating terms in the same vocabulary:
ID,Name,Language
1,SEYCHELLES,fr
2,SEYCHELLES,en
for the same vocabulary, when importing 2 terms with the same name but in different langauges, findMatchingTerm finds that the second term is a duplicate of the first one, and the migration ends by updating the second term insted of creating a new one
This happens because findMatchingTerm does an taxonomy_term_load_multiple with criterias on the term name and vocabulary id only.
We need to have the language criteria too to allow migrating terms that have the same name in different languages into the same vocabulary.
i will suggest a patch for this
Thanks
Comment | File | Size | Author |
---|---|---|---|
#5 | migrate-findMatchingTermfindMatchingTerm_language_criteria-2459435-5.patch | 931 bytes | izus |
#1 | migrate-findMatchingTermfindMatchingTerm_language_criteria-2459435-1.patch | 731 bytes | izus |
Comments
Comment #1
izus CreditAttribution: izus at Linagora commentedand here is the patch :)
Comment #2
izus CreditAttribution: izus at Linagora commentedComment #4
mikeryanThere should be a check that $term->language is set.
Comment #5
izus CreditAttribution: izus commentedThanks for the review.
Here is a patch to test term language :)
Comment #7
temkin CreditAttribution: temkin as a volunteer commented