What appear to be a few redundancies and some a-typical behavior can be cleaned up wrt entity reference field creation:
1:
On the manage field tab of content types (e.g. /admin/structure/types/manage/article/fields), dropdown for "Type of data to store" contains both "Term reference" and "Entity reference." If you select "Entity reference" you have the opportunity on the next screen to choose "Term reference" in the dropdown for "Type of item to reference"
Proposed solution: remove "Term reference" from the options on the main Manage fields screen, leaving just "Entity reference" and allowing "Term reference" to be selected on the following page.
2:
When creating entity reference fields, a "Reference method" value is required; however, either choice in the dropdown is valid, meaning that requiring the field has no effect.
Proposed solution: Don't mark Reference method as a required field
3:
Typically in previous versions of Drupal, when all checkbox options on a given settings form element are valid, leaving none of the checkboxes checked meant all values applied. However, target bundles are required when creating entity reference fields, meaning that a checkbox must be placed next to each possibility if all apply.
Proposed solution: don't require selection of target bundles; if no value is selected, all should apply
Now being discussed in #3038245: [PP-1] Don't allow all media types if no target bundle is configured.
Comments
Comment #2
paranojik CreditAttribution: paranojik as a volunteer commentedComment #8
PanchoThese suggestions should actually be three separate issues, as otherwise they won't be picked up.
Starting with the third one, I created #3038245: [PP-1] Don't allow all media types if no target bundle is configured.
Comment #13
quietone CreditAttribution: quietone as a volunteer commentedI checked on a standard install of 9.2.x.
1, On the manage field tab of content types (e.g. /admin/structure/types/manage/article/fields), dropdown for "Type of data to store" contains both "Term reference" and "Entity reference."
On a standard install this is no longer true. The add a new field drop down has a group 'Reference' which does not contain 'entity reference'. It does 'Taxonomy term', 'User' and others.
2. I must be missing something, this seems to be working as designed. A field is required and valid options are given.
@kay_v, is this still an issue? Can you expand on point 2 in the IS.
Comment #19
smustgrave CreditAttribution: smustgrave at Mobomo commentedSince there hasn't been a follow up for #13 going to close out for now.
If still a valid task please reopen updating issue summary and addressing the open questions in #13
Thanks!