Posted by slybanshee on February 20, 2007 at 9:04pm
| Project: | Active Select |
| Version: | 5.x-1.0 |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Target fields stay empty when parent field changed. This occurs in Internet Explorer 6, not depending the level of Java-security, even of Java disabled. At the same time on Firefox 2.0 everything works fine. Category module version 5.x-1.1.
To reproduce:
1. Create Container1.
2. Create Category1 in Container1.
3. Create Container2 in Container1.
4. Set Container2 allowing categories to have distant parents from Container1 (attention: NOT Container1* with asterisks).
5. Create Category2 in Container2.
6. Set Category2's parents to both Container2 and Category1.
7. Assign Container1 and Container2 to some content type.
8. Try to create content with both browsers.
Comments
#1
Remark: during steps 1 to 7 Active select must be disabled bacause off known bug (see http://drupal.org/node/121524 for details). Before you will try to create content during step 8 enable Active select in modules section. I attach two screenshots to illustrate the difference between two browsers.
#2
http://drupal.org/node/129027
#3
Thank you Shane Birley!
Making this closed. For solution see the above link.
#4
The following works for me:
Change line 156 (approx) from activeselect.js
-- $(this.targets[targetIndex]).append(new Option(text, value, false, selected));
++ if (navigator.appName == "Microsoft Internet Explorer") {
++ this.targets[targetIndex].add(new Option(text, value, false, selected));
++ }else{
++ $(this.targets[targetIndex]).append(new Option(text, value, false, selected));
++ }
Thanks to olemsa: http://drupal.org/node/147076#comment-561190