Contact_emails entity load default field field_message format but needs validation if we have this field without format.
Related error:
Warning: array_flip(): Can only flip STRING and INTEGER values! en Drupal\Core\Entity\EntityStorageBase->loadMultiple()

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

diegodalr3 created an issue. See original summary.

diegodalr3’s picture

Add validation of format for the default field_message field.

scott_euser’s picture

Status: Active » Reviewed & tested by the community

Looks good to me, thanks! Given that $format = 'text/html'; is defined above this, we have a valid fallback return for this method if the condition fails.

Status: Reviewed & tested by the community » Needs work

The last submitted patch, 2: validate-filter-format-3040922-2.patch, failed testing. View results

johnpicozzi’s picture

This patch worked! However, I then had the issue outlined here. https://www.drupal.org/project/contact_emails/issues/3044311#comment-131... So I applied this patch as well. RTBC +1

scott_euser’s picture

Status: Needs work » Fixed

Great thank you for this! Apologies for the delay fixing the broken tests + D9 compatibility.

Status: Fixed » Closed (fixed)

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