Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
As the title suggests, I ran into an issue while creating 3 profile taxonomies. They display not only the appropriate values but also values from "previous" taxonomies.
The first drop-down displays only a value of its own taxonomy.
The second drop-down displays values from the previous (first) and its own taxonomy.
The third drop-down displays values from the first/second and its own taxonomy.
I tested the rc1 as well as the dev version and the problem seems to persist.
Any help fixing would be greatly appreciated.
Thank you!
Comment | File | Size | Author |
---|---|---|---|
profile-taxonomy.png | 19.1 KB | vasheck |
Comments
Comment #1
optidel CreditAttribution: optidel commentedI also ran into this problem. Since this module cannot be used without solving this, I am upgrading the priority to critical.
I also found the cause. The variable $options is not being nullified after a particular taxonomy's values are read into it. To solve the problem, in the rc1 version add this line after line 133.
$options = null;
In case it is different in other versions, line 133 should read - $field['#options'] = $options; //attach options
Comment #2
vasheck CreditAttribution: vasheck commentedWorked like a charm.... Thank you very much, maragnis!
I really appreciate your help!
Comment #3
gnindl CreditAttribution: gnindl commentedReferenced vocabularies are exported and synchronized with the profile field options with the 1.0-rc2 release, so they shouldn't be any interference any more.
Comment #4
vasheck CreditAttribution: vasheck commentedperfect! thank you!