There is an Exception raised when one tries to edit an existing Term condition from the administrative pages.
Screenshot of term_condition plugin configuration form

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.

Comments

matthieuscarset created an issue. See original summary.

matthieuscarset’s picture

Issue summary: View changes
StatusFileSize
new91.52 KB
caspervoogt’s picture

this patch worked for me.

matthieuscarset’s picture

Status: Needs review » Reviewed & tested by the community

thanks a lot for your test @caspervoogt
marking this issue a RTBC then :)

tomazetti’s picture

yazzbe’s picture

Patch #2 worked.
Fixed the error on D8.5.6

danielveza’s picture

Status: Reviewed & tested by the community » Fixed
Related issues: +#2948550: Allow multiple term conditions per block

This has been fixed already in the related issue. Thanks for using and reporting!

Status: Fixed » Closed (fixed)

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