Save term lineage when selecting a child term

Mark Theunissen - February 23, 2009 - 11:33
Project:Better Select
Version:6.x-1.0-beta1
Component:Code
Category:feature request
Priority:normal
Assigned:Mark Theunissen
Status:closed
Description

If a user selects a child term but doesn't tick the parent, this option will automatically save both the parent and child terms. This happens in the submit handler. There is an admin option added to turn this on and off. See patch, which includes the changes from my other two issues.

#376968: Give each better-select div a unique id
#376710: Use Drupal.behaviors in .js

#1

Mark Theunissen - February 23, 2009 - 11:36

I haven't added the few lines to the function betterselect_taxonomy_form_term_from_checkboxes(), could the developers of this module help please? What does this function do? I can't seem to find the taxonomy_form_term.

AttachmentSize
betterselect-save_lineage-380898-1.patch 3.44 KB

#2

Mark Theunissen - February 23, 2009 - 12:54

Woops, last patch was broken.

AttachmentSize
betterselect-save_lineage-380898-3.patch 3.61 KB

#3

Mark Theunissen - February 27, 2009 - 11:21
Status:needs review» fixed

Fixed in -dev. I also split the settings form into Taxonomy and General settings.

#4

System Message - March 13, 2009 - 11:30
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.