Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
fgjohnson@lojoh.ca CreditAttribution: fgjohnson@lojoh.ca commentedComment #2
fgjohnson@lojoh.ca CreditAttribution: fgjohnson@lojoh.ca commentedSigh...
I think I just forgot to define the criteria for the Select List!
Sorry
Comment #3
ylc208 CreditAttribution: ylc208 commentedHi!
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.
Comment #4
WattDesigns CreditAttribution: WattDesigns commentedI have this exact same problem. Where do I assign it????
Thanks!!!