Closed (fixed)
Project:
Drupal core
Version:
6.x-dev
Component:
taxonomy.module
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 Dec 2008 at 12:23 UTC
Updated:
14 Jul 2010 at 09:10 UTC
Jump to comment: Most recent file
Comments
Comment #1
catchThis will need fixing in D7 first then backporting to 6. Is the bug reproducible just with js disabled?
Comment #2
bwynants commentedI guess so and it is also reproducible by defining your own button without an ahah handler. I have no D7 so then it's up to someone else to fix...
Comment #3
catchMoving back to Drupal 6, there's no taxonomy_form_alter() in D7 any more.
Comment #4
bwynants commentedso patch needs review....
Comment #5
jvandervort commentedI searched for this, but I guess I didn't look old enough. This is still definitely active.
Marking my issue a duplicate:
#726056: Poll node taxonomy selectbox is reset when you click "more choices"
Until core gets fixed, the workaround in 726056 issue might help some folks.
The patch looks reasonable, but maybe a comment tweak:
Comment #6
gábor hojtsyAgreed the updated comment would be better. I could have done that myself though :)
What I've noticed by looking around this code is that not too long below the patched lines, isset($form_state['node_preview']) is used again. Is that not affected by the same issue? For me, it looks like it is.
Comment #7
jvandervort commentedI don't think the second isset($form_state['node_preview']) requires the same fix.
It uses the already fixed $terms and $node->taxonomy, and it just detecting an actual preview
so it can use the user entered preview terms.
Comment #8
bwynants commentedNope that isset doesn't need the fix. I'm running with this fix over 15 months with no problems.
fixed comment
Comment #9
jvandervort commentedPatch looks good. It is small, but gets the job done.
Comment #10
gábor hojtsyOk, committed, thanks.