Closed (fixed)
Project:
Term Display
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Nov 2008 at 01:41 UTC
Updated:
24 Dec 2008 at 23:41 UTC
Any changes to taxonomy settings of any category and the term settings on my multiple select, non-freetagging, required vocabulary resets itself to the defaults. Oddly, it doesn't affect my free tagging category.
Comments
Comment #1
Palo M. commentedI also met exactly same problem, on Drupal 6.
It can be easily reproduced following way:
1. In vocabulary settings I have set only multiple selection flag.
2. I have several terms in vocabulary.
3. Set term_display settings for vocabulary to some non-default (e.g. custom with non-zero weight).
4. All works as expected.
5. Update any term of the vocabulary (e.g. change description).
6. The term_display stopped working. When editing vocabulary settings again, term_display parameters are reset to default. It can be used, just each update of term will reset it again.
It seems that term_display_taxonomy is called also when any term is updated (at least in my D6).
I was able to suppress the unwanted resets by following change in it:
Old code:
New code:
(Alternatively there can be one DELETE and one INSERT instead of UPDATE, I just believe that one DB command is better than two...)
I'm quite new to Drupal and php, so I'm not sure about correctness, but at least it works fine for me.
Comment #2
nedjoThanks Palo M. I've applied a modified version of this patch.