Hi,

i didn't set up a weight for each taxonomy term so that they get sorted in alphabetical order. When i then enable taxonomy super select for the vocabulary, taxonomy terms are mixed up and aren't shown in alphabetical order anymore.

Thanks for help
rainer7

Comments

mo6’s picture

Component: Miscellaneous » Code

bug also present in 5.x version

mo6’s picture

Version: 4.7.x-1.0 » 5.x-1.5-1
Status: Active » Needs review
StatusFileSize
new5.09 KB

Solved this by adding some artificial weight to the fieldsets. It seems that the FAPI messes up with the order in which fields (or fieldsets at least) are added. Here's a diff against the 5.x-1.5-1 version (sorry not a real patch).

mo6’s picture

StatusFileSize
new8.43 KB

This patch also puts the terms in the right order. This means alphabetically when the terms have the same weight. Putting different weights on terms should keep things in order because the taxonomy_get_tree() functions returns the items in the right order.

codexmas’s picture

Assigned: Unassigned » codexmas

Great stuff! I have been pretty busy and unable to spend much time on the project lately.

I really appreciate the work you have put into this and will try to apply it in the next few days.

The changes will apply nicely for 4.7.x and 5.x so far as I can see from my initial review of your diff.

Gord.

yngens’s picture

subscribe.

thank you guys! this is very useful module and i also liked this feature. patch works for me perfectly.

pnc999’s picture

Hi,

I'm an absolute newbie at Drupal. How do I apply this 'patch' to the taxonomy super select module?

Thanks

rconstantine’s picture

See http://drupal.org/node/140609 for unlimited depth patch and follow-up fix for alphabetic sort which is based on this fix.

nancydru’s picture

Status: Needs review » Closed (duplicate)

The other issue includes this and is now included in 5.x-1-10.