Closed (fixed)
Project:
Hierarchical Select
Version:
5.x-2.0-rc4
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
29 Jan 2008 at 22:27 UTC
Updated:
26 Feb 2008 at 09:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
jpsalter commentedI added this at line #189 in taxonomy.inc to set the default to the node's current term - see comment for line:
Comment #2
wim leersThat should work just fine.
Do you have multiple select enabled? If not, this is a bug that only occurs in very specific circumstances.
Comment #3
jpsalter commentedYou're right - I do not have multiple select set.
Comment #4
wim leersThen it's the intended behavior. It does show up in the dropbox, right? Please post a screenshot! :)
Comment #5
wim leersComment #6
wim leersComment #7
xtfer commentedI'm having what i think is the same problem. It saves fine, but then does NOT show up in the dropbox or a list when you go back to edit (i.e. it is not displaying the current taxonomy information).
This is for items that are NOT Multiple Select's (the multi-select's are getting an "All Selections" list below them, which I assume is a work-around behaviour, but will do fine).
The term depth doesn't seem to matter. Also this is for RC2...
Comment #8
wim leersSame reply for you: please post a screenshot – or a several screenshots (one for submitting the node, one for re-editing it), so I can be very sure what exactly is the problem.
Also, please upgrade to RC3 and verify that the problem still exists. It's unlikely that it's fixed, and if it is, it'd have been indirectly.
Comment #9
mansion commentedSame here.
Once the node is saved, if it is edited again with hierarchical select, the select box will not show the previously selected values. This was observed both with multiple and single selects.
I don't see any dropbox neither. The vocabulary admin page proposes a "Dropbox settings" fieldset but there is no options displayed in there, only a description.
So I guess this might be related to the dropbox?
Comment #10
wim leersOnce again: I want screenshots!
Comment #11
wim leersThis is the final issue in the queue that prevents the 2.0 final release. Please post screenshots, so I can fix it!
Also, please upgrade to RC3 first.
Comment #12
mansion commentedThe problem is in RC3.
Why do you want screenshots ?
You submit a new node. The next time you edit it, the hierarchical selects instead of being set to the default values are empty. I don't think a screenshot is needed to visualise that. I am only surprised it works for you.
Setting the default values for filters while in Views works though.
This was tested in Firefox and Safari, I don't have IE at hands.
Comment #13
wim leersThen please post *all details* of your Hierarchical Select settings.
Comment #14
jpsalter commentedAttached is a screen shot of what I'm experiencing. This was done using RC3
I have the vocabulary set to:
Hierarchy - Single
Allows related terms in this vocabulary - NO
Free tagging- NO
Multiple select - NO
Required - NO
The default value passed in the variable $form is an array. The API seems to like a single value.
A single line of code at line 222 is needed to set the default in this case (note: I don't know if this breaks vocabularies with other settings)
Comment #15
wim leersHmm... I'm wondering if this has changed since one of the earlier Drupal 5 versions. I'd appreciate it if you could test with Drupal 5.2 or so.
Will get this fixed tomorrow.
Comment #16
jpsalter commentedMy testing was done on Drupal 5.7. Sorry, but I don't have a Drupal 5.2 install laying around.
Comment #17
wim leersYou can still download it from http://drupal.org/drupal-5.2
Comment #18
wim leersI didn't notice it when I first commented, but you forgot to post your HS settings, which I need too!
Comment #19
wim leersI just tried to reproduce this and failed once again... I tried:
- enforce_deepest = TRUE, save_lineage = TRUE
- enforce_deepest = TRUE, save_lineage = FALSE
- enforce_deepest = FALSE, save_lineage = TRUE
- enforce_deepest = FALSE, save_lineage = FALSE
i.e. all permutations of settings. This was on Drupal 5.6, using regular Taxonomy (not content_taxonomy).
Comment #20
wim leersSomebody who had this problem (but was at beta 2) saw it fixed when he updated to RC4. So perhaps, it's accidentally fixed. Please test.
Comment #21
victorkane commentedOK, I had the same problem, editing wasn't showing more than one or two of my four level deep hierarchy; and I was in the process of mustering my screen shots, when rc4 showed up in my update status list. I downloaded it and presto, problem fixed! So "works for me".
Comment #22
wim leersIn RC4, the lineage reconstruction algorithm has been rewritten. I bet that was the cause then.
And … cool to know you're using my module too, Victor! :)
Comment #23
victorkane commentedJust FYI, I want to confirm that I was using the lineage saving option, so that would go towards confirming what you are saying.
It is a cool module! So I am using it in various sites I am working on right now, and helps to lead to a whole new "in defense of taxonomy" approach as a lightweight and powerful outlining tool for many purposes that I have tended to overload onto nodereferences up till now.
saludos!
Comment #24
z.stolar commentedI'm not sure whether this is about multiple select or not. Here are my results:
- With the module disabled, the default taxonomy term is presented as expected. See screenshot no. 1
- Enabling the module. See screenshot no. 2
- Going back to edit - the Dropbox is empty. See screenshot no. 3. However, saving the node in this state, keeps the old term.
- Choosing a new term via the widget, and going back to edit - the new term is in place, as expected. See screenshot no. 4
My conclusion is that the problem is with first time use with existing nodes.
Comment #25
wim leersNope, it's not. In this example, you've selected a *single* term that's *not in the root level*.
You have allowed the user to select a term in any level, *but* you've also configured it to save the term lineage. And for a term lineage, you need to have *multiple terms* selected that also form one or more lineages.
So the behavior is perfectly fine.
Please post a new issue next time!
Comment #26
wim leers