Problem/Motivation
The "if none were selected" part of "On parent selection, automatically select children if none were selected.". Likewise for the reverse.
Steps to reproduce
- Create a taxonomy vocabulary with hierarchy
- Add a term field to a content type set to this vocab
- Set the form display widget to 'Term reference tree'
- Set 'Cascading selection' to anything but none
- Create some content of this type
- Select a child term in the field then select the parent. This will select all the other children, whereas from the wording I would expect no other children to be selected as I had already selected one individually
Proposed resolution
Updating the js to account for this.
Remaining tasks
Patch to follow shortly. Needs review.
Comment | File | Size | Author |
---|---|---|---|
#5 | 3339696-cascading_selection_children_selected-5.patch | 1.51 KB | joaopauloscho |
#2 | 3339696-cascading_selection_children_selected-2.patch | 1.48 KB | kimberleycgm |
Issue fork term_reference_tree-3339696
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
kimberleycgmComment #4
kimberleycgmComment #5
joaopauloscho CreditAttribution: joaopauloscho at Zoocha commentedUpdated patch to apply with version 2.