Steps to Reproduce:
- On a clean Liferay, create a vocabulary with an associated category.
- Add a subcategory to the previous created category.
- Add a new vocabulary which name gets sorted before than the first one. For example, use example_z for the first vocabulary and example_a for the second. Attach a new category to this vocabulary.
- Edit one of the subcategories created in the first step and click save.
The subcategory is now associated to the first listed vocabulary.
The subcategory remains assigned to its initial vocabulary.