Selecting "disabled" does not disable taxonomies, hidden wont work with Taxonomy Defaults

traviss359 - October 30, 2008 - 23:31
Project:Taxonomy Role
Version:5.x-1.2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active
Description

When selecting "disabled" for a taxonomy at "admin/settings/taxonomy_role", that taxonomy does not end up disabled for a user who does not have an accessible role. The reason I chose to use disabled over hidden is because it was not allowing Taxonomy Defaults to set the default value I created for the taxonomy.

To overcome this, I replaced line 55 ($form['taxonomy'][$vid]['#disabled'] = TRUE;) with $form['taxonomy'][$vid]['#attributes'] = array('style' => 'visibility: hidden');

This hides the taxonomy and allows Taxonomy Defaults to set the default value.

I am using Drupal 5.11. Thanks for the great module.

 
 

Drupal is a registered trademark of Dries Buytaert.