Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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()
Comment | File | Size | Author |
---|---|---|---|
#2 | validate-filter-format-3040922-2.patch | 574 bytes | diegodalr3 |
Comments
Comment #2
diegodalr3 CreditAttribution: diegodalr3 as a volunteer and at Skilld commentedAdd validation of format for the default field_message field.
Comment #3
scott_euser CreditAttribution: scott_euser as a volunteer and at Soapbox Communications Ltd commentedLooks 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.Comment #5
johnpicozziThis 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
Comment #7
scott_euser CreditAttribution: scott_euser as a volunteer and at Soapbox Communications Ltd commentedGreat thank you for this! Apologies for the delay fixing the broken tests + D9 compatibility.