Closed (fixed)
Project:
Hierarchical Select
Version:
5.x-2.0
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
4 Mar 2008 at 01:08 UTC
Updated:
11 Mar 2008 at 23:18 UTC
Jump to comment: Most recent file
When I remove a term from the dropbox the select dropdown disappears (all you see is the add button). If you then try to remove a second term from the dropbox there is a javascript error generated:
"fullSelection has no properties"
hierarchical_select.js (line 257)
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | sc1.png | 11.11 KB | Kat_Sweden |
| #5 | sc2.png | 10.22 KB | Kat_Sweden |
| #5 | sc3.png | 87.5 KB | Kat_Sweden |
Comments
Comment #1
wim leersWhich browser? I can't reproduce this issue in Firefox nor Safari, nor Internet Explorer..
Comment #2
Kat_Sweden commentedFirefox v2.0.0.12. We are using the latest version of the hierarchical select module. Did you want a screenshot of the behaviour I'm seeing?
Comment #3
wim leersNo, I believe you ;) I do want the exact steps to reproduce this. Don't forget to post your precise Hierarchical Select settings!
Comment #4
wim leersPlease post these things as soon as you can. I want HS 2.1 with all bugfixes to be out there ASAP, and this bug should be fixed as well.
Comment #5
Kat_Sweden commentedThanks Wim :)
I've attached 3 screenshots.
sc1.png - shows the three terms selected. The limit is set to 3.
sc2.png - shows what happens when you remove one term, the select dropdown disappears
sc3.png - shows what happens when you remove a second term. There is a javascript error and the browser hangs.
The select is set dynamically using the form_alter hook:
$form['taxonomy'][20]['#weight'] = 5;
$form['taxonomy'][20]['#type'] = 'hierarchical_select';
$form['taxonomy'][20]['#hierarchical_select_settings'] = array(
'module' => 'taxonomy',
'save_lineage' => FALSE,
'enforce_deepest' => FALSE,
'params' => array(
'vid' => 20,
),
'animation_delay' => 400,
'dropbox_title' => t('These are the terms you selected'). ':',
'dropbox_limit' => 3,
);
if you need anymore info please let me know
Comment #6
wim leersI'm afraid I can't reproduce this… It's also almost impossible for the dropdowns to disappear. Please make sure that you have removed the files for Hierarchical Select 1 properly, and that you have overwritten previous HS 2 files too.
Comment #7
Kat_Sweden commentedThanks for looking into this Wim and apologies for not responding sooner. I haven't been able to work out what is causing the issue, I've made sure the older HS files have all been removed and this hasn't helped.
We have removed it for now due to time constraints (the site is about to go live) but are keen to use it after go-live so I'll try implementing it again at a later date.