Problem/Motivation

Like #3001828: field type integeris not a recognized reference type, or:How to entity_lookup a commerce_product I'm mapping to an integer field, but I don't want to restrict by bundle. In fact in one case there isn't a bundle type fields (it's not a bundleable entity). It shouldn't be a exception if the bundle isn't present, as it's not actually required.

Steps to reproduce

As per linked example, but without bundle_type and bundle.

Proposed resolution

Don't throw an exception if there is only the bundle type or bundle missing. Still throw an exception if the entity_type or value field are missing because those really are required.

Remaining tasks

Patch.

User interface changes

None.

API changes

None except you can uses a non-reference field without a bundle type.

Data model changes

None.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

ekes created an issue. See original summary.

ekes’s picture

Status: Active » Needs review

https://git.drupalcode.org/issue/migrate_plus-3481311/-/compare/6.0.x......

I'll find where you make a merge request again sooner or later.

heddn made their first commit to this issue’s fork.

  • heddn committed bce4b029 on 6.0.x authored by ekes
    Issue #3481311 by ekes, heddn: Bundle key and Bundle are required if you...
heddn’s picture

Thanks for the fix.

heddn’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.