Hi,

I have a content type that has a "Term Reference" field assigned to a Multi-level Taxonomy vocabulary.
An error is displayed when editing the field that indictaes "You need to specify the 'allowed values' for this field"

The code does test for an empty 'allowed_value' field for a 'taxonomy_term_reference'.

        if (in_array($widget_type, array('multiselect'))) {
          if (in_array($field_type, array('list', 'list_number', 'list_text', 'taxonomy_term_reference'))) {
            // CCK user_reference and node_reference fields don't need allowed values list.
            // For other field types, if no 'allowed values' were set yet, add a reminder message.
            if (empty($form['field']['settings']['allowed_values']['#default_value'])) {
              drupal_set_message(t("You need to specify the 'allowed values' for this field."), 'warning');

I don't want a Default Value and don't seem to be able to assign one anyway.

Will this error, cause any issues other than the onscreen error msg (that I will suppress on once the app goes live).

Thanks

Comments

fgjohnson@lojoh.ca’s picture

Issue summary: View changes
fgjohnson@lojoh.ca’s picture

Status: Active » Closed (fixed)

Sigh...
I think I just forgot to define the criteria for the Select List!
Sorry

ylc208’s picture

Hi!
I get this issue with 7.x.1.10 . I also use "Term Reference" field assigned to a Multi-level Taxonomy vocabulary. Do you know why and how to fix it?
Thank you.

WattDesigns’s picture

I have this exact same problem. Where do I assign it????

Thanks!!!