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.
Problem/Motivation
Steps to reproduce:
- After installing site with standard profile, make sure you have
default_value:{}
in sites\default\files\config_[hash]\active\field.instance.node.article.field_tags.yml - Go to admin/structure/types/manage/article/fields
- Edit Tags
- on "Default value" enter some free text and click "Save settings". (make sure widget type is "Autocomplete term widget (tagging)")
- Now check the same file in step 1 and you can see default_value as below:
tid: '0' entity: tid: '' uuid: b4061cc9-39c5-448a-90b9-5318f9af56db vid: category name: freetext description: '' format: '' weight: '0' parent: - '0' langcode: und "\0*\0entityType": taxonomy_term "\0*\0enforceIsNew": '' "\0*\0newRevision": '0' "\0*\0isDefaultRevision": '1'
Remaining tasks
Discuss and issue patch, if it is a bug.
Comments
Comment #1
yched CreditAttribution: yched commentedYes, the 'entity' wasn't supposed to end up there, but this has been fixed meanwhile in entity_ref module.
Comment #1.0
yched CreditAttribution: yched commentedUpdated issue summary.