Hi,
there is a checkbox that says
"Select parents automatically
When turned on, this option causes the widget to automatically select the ancestors of all selected items. In Leaves Only mode, the parents will be added invisibly to the selected value. This option is only valid if an unlimited number of values can be selected."

so if you check all children and save the content, parent is saved automatically - that is good and works as expected, however if you go back and edit the same content, uncheck a child and save again, the parent is not removed from the database.
this is a bug, since all selected items are not selected and upon edit the parent should be removed automatically.

Thanks,

Checkbox on the edit screen:
Start minimized
Make the tree appear minimized on the form by default

Leaves only
Don't allow the user to select items that have children

Select parents automatically
When turned on, this option causes the widget to automatically select the ancestors of all selected items. In Leaves Only mode, the parents will be added invisibly to the selected value. This option is only valid if an unlimited number of values can be selected.

Comments

alex_optim’s picture

Priority: Major » Minor
Issue summary: View changes
vladimiraus’s picture

Status: Active » Closed (outdated)

Thank you everyone for your contribution.
Drupal 7 is no longer supported but we always need support for Drupal 11 version.
Closing as outdated.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.