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.
How to reproduce:
- install Taxonomy and Name modules
- create a new vocabulary "test_title_option" with few terms
- create a new entity type (e.g. a node)
- add to this entity a "name" field, that use the following text as options:
[vocabulary:test_title_option]
- save the field
What we see:
- an error id displayed, that says: "title options is required"
What we should see:
- the field overview page with a message that says that the field has been successfully saved
Comment | File | Size | Author |
---|---|---|---|
#7 | name-2071691-7-name-options-parser-regexp-as-constant.patch | 2.02 KB | Alan D. |
| |||
#6 | 2071691-6-d8.patch | 1.84 KB | webflo |
#1 | name-vocabulary-as-option-fails-2071691-1.patch | 1.97 KB | B-Prod |
Comments
Comment #1
B-Prod CreditAttribution: B-Prod commentedThe patch below fixes this, and an other related bug: the regular expression in the function _name_field_get_options() is wrong.
Comment #3
webflo CreditAttribution: webflo commentedLooks good. Thanks B-Prod!
Needs patch for D8 ...
Comment #4
Alan D. CreditAttribution: Alan D. commentedThanks to you both! I have had no free time to look at my project queues!
@webflo
I try to use the author flag on the commits to tag the users with a commit credit to help stimulate community effort (when I remember to) if they do not use format-patch. This is just adding the "Git attribution" from the users page to the commit.
git commit --author="bprod <bprod@407852.no-reply.drupal.org>" -m "Issue..."
Cheers again
Comment #5
B-Prod CreditAttribution: B-Prod commentedSet as "Need work" for D8.
Comment #6
webflo CreditAttribution: webflo commentedComment #7
Alan D. CreditAttribution: Alan D. commentedComment #9
Alan D. CreditAttribution: Alan D. commented