I spotted what seems like an oddity in the way the hierarchy field in the vocabulary table behaves: see http://drupal.org/node/383926#comment-2026102:

Testing on a nearly-vanilla Drupal 6.13 sandbox:

(1) Create vocab: not tagging; not multiple; required. Result: hierarchy field = 0.
(2) Add a parent term then a child term. Result: hierarchy field = 1.
(3) Edit & save vocab with no changes. Result: hierarchy field = 0.
(4) Add another child term. Result: hierarchy field = 1.

Does (3) represent a bug in taxonomy.module? Or is the hierarchy field no longer used in any consistent way in D6?

Dave

Comments

rsoden’s picture

Status: Active » Needs review
StatusFileSize
new1.08 KB

The same behavior is happening with term relations. Attached is a patch that fixes both by using values from the $edit array - which are set to appropriate defaults but won't override values that are already set.

Status: Needs review » Needs work

The last submitted patch, taxonomy-hierarchy-580040.patch, failed testing.

yhahn’s picture

Subscribing.

tmcw’s picture

+1

rsoden’s picture

Version: 6.13 » 6.17
StatusFileSize
new1.08 KB

Updating version, reattaching patch.

rsoden’s picture

Status: Needs work » Needs review

Needs review.

Status: Needs review » Needs work

The last submitted patch, taxonomy-hierarchy-580040.patch, failed testing.

jonathan_hunt’s picture

Patch works for me. Would be good to see it committed.

roderik’s picture