There is an Exception raised when one tries to edit an existing Term condition from the administrative pages.

InvalidArgumentException : The #default_value property has to be an entity object or an array of entity objects. in Drupal\Core\Entity\Element\EntityAutocomplete::valueCallback() (line 68 of /app/web/core/lib/Drupal/Core/Entity/Element/EntityAutocomplete.php).
This is because we pass the tid only in the plugin form.
I've attached this patch to fix this issue.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | term_condition_edit_button.png | 91.52 KB | matthieuscarset |
| 0001-Load-entity-in-term_condition-plugin-form.patch | 1.22 KB | matthieuscarset |
Comments
Comment #2
matthieuscarset commentedComment #3
caspervoogt commentedthis patch worked for me.
Comment #4
matthieuscarset commentedthanks a lot for your test @caspervoogt
marking this issue a RTBC then :)
Comment #5
tomazetti commentedComment #6
yazzbe commentedPatch #2 worked.
Fixed the error on D8.5.6
Comment #7
danielvezaThis has been fixed already in the related issue. Thanks for using and reporting!