Sorry about the title. Here's the scenario - add a taxonomy to a content type but do not set a default term(s). There are no values stored in the variable table for taxonomy_defaults for this content type / taxonomy. taxonomy_defaults_form_alter() is called when creating content and since visible is not set then it is assumed the taxonomy should be hidden on the page. The default should be to always display unless the 'Hide' is selected in defaults.

Comments

bradweikel’s picture

Thanks rstwohee. I can't submit a patch right now (not on my usual workstation), but this change should work:
In taxonomy_defaults.module, in the taxonomy_defaults_form_alter function (around line 74), change
$visible = variable_get("taxdef_{$node->type}_{$vid}_visible", array());
to
$visible = variable_get("taxdef_{$node->type}_{$vid}_visible", TRUE);

Let me know if that works for you, and I'll commit the change when I have a chance.

Anonymous’s picture

Thanks for the prompt reply. The fix works great.

bradweikel’s picture

Version: 6.x-1.x-dev » 6.x-2.x-dev
Status: Active » Fixed

Fix committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.