Inline entity form integration doesn't work

Created on 14 February 2020, about 5 years ago
Updated 21 April 2025, 6 days ago

I have added transaction entity reference to content type.

On node edit, transaction add/edit works fine but it throws below error while try to add transaction through add node page.

TypeError: Argument 1 passed to Drupal\transaction\Entity\Transaction::setTargetEntity() must implement interface Drupal\Core\Entity\ContentEntityInterface, null given, called in transaction/transaction.module on line 45 in Drupal\transaction\Entity\Transaction->setTargetEntity() (line 468 of transaction/src/Entity/Transaction.php)

🐛 Bug report
Status

Needs work

Version

1.0

Component

Code

Created by

🇮🇳India dev20.addweb

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • 🇪🇸Spain manuel.adan 🌌

    Still present in D10 with IEF 1.0.0-rc17. Patch applies and works, but needs some UX review. When using complex IEF "Update" and "Cancel" buttons shouldn't be displayed:

Production build 0.71.5 2024