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
Comment #1
bradweikel commentedThanks 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.
Comment #2
Anonymous (not verified) commentedThanks for the prompt reply. The fix works great.
Comment #3
bradweikel commentedFix committed.