Problem/Motivation
It's easier to list the steps than try to explain in words.
Steps to reproduce:
- Create a term (term1).
- Create another term (term2) which has the parents set to root and term1.
- Note that on the overview page, the drag handles to move terms around no longer appear. This is correct because the vocabulary now has multiple hierarchy.
- Edit term2, set the parent to term1 only, i.e., remove root. (Currently this will happen just by hitting Save because of https://www.drupal.org/node/2898903)
- The drag handles should reappear on the overview page but they do not.
This is happening because the code in TermForm::save() does not account for the root pseudo parent properly.
Steps to reproduce
Proposed resolution
Create patch to fix the code in TermForm::save().
This will be easier and cleaner to fix after https://www.drupal.org/node/2898903 is committed because TermForm::save() needs to know if the previous parent(s) included root.
Remaining tasks
Postponed on #2898903: Terms lose <root> as the parent when editing
Patch
review
commit
Comments
Comment #2
tetranz commentedComment #11
quietone commentedI confirmed this is reproducible on Drupal 9.4.x.
As per the Issue Summary, postponing this on #2898903: Terms lose <root> as the parent when editing.
Comment #14
quietone commentedI mean to set this to postponed.