Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
I get this when trying to edit an existing node with a populated entity reference w/ an autocomplete widget:
Error message
InvalidArgumentException: Property revision_id is unknown. in Drupal\Core\Entity\Field\Type\EntityReferenceItem->setValue() (line 84 of /Users/webchick/Sites/8.x/core/lib/Drupal/Core/Entity/Field/Type/EntityReferenceItem.php).
The website has encountered an error. Please try again later.
This is the very definition of "Needs tests" :P
Comment | File | Size | Author |
---|---|---|---|
#5 | entity-reference-ng-1956434-4.patch | 10.98 KB | Berdir |
#5 | entity-reference-ng-1956434-4-test-only.patch | 5.52 KB | Berdir |
Comments
Comment #1
ParisLiakos CreditAttribution: ParisLiakos commentedFix is already in #1847596: Remove Taxonomy term reference field in favor of Entity reference, not sure if we should wait for that to get in though
Comment #2
webchickI would say not... last I checked there were some pretty hefty UX concerns with that patch, and this is just a straight-up bug.
Comment #3
xjmYeah, let's definitely pull that fix out of that patch and file it separately here with its own test coverage.
Comment #4
amateescu CreditAttribution: amateescu commentedComment #5
BerdirThis should be the relevant pieces from that issue.
Comment #6
Berdir@amateescu: I hope you didn't already start :)
Comment #7
amateescu CreditAttribution: amateescu commentedI did, but my patch is *identical* to yours, so we're good to go here.
Comment #9
xjm#5: entity-reference-ng-1956434-4.patch queued for re-testing.
Comment #10
Berdir#5 passed now (I assume that was a testbot problem), so back to RTBC.
Comment #11
webchickAwesome, thanks folks!
Committed and pushed to 8.x.