diff --git a/code/Model/EditableFormField/EditableFormHeading.php b/code/Model/EditableFormField/EditableFormHeading.php index b324d1c..f6a8b5e 100644 --- a/code/Model/EditableFormField/EditableFormHeading.php +++ b/code/Model/EditableFormField/EditableFormHeading.php @@ -70,7 +70,7 @@ class EditableFormHeading extends EditableFormField public function getFormField() { - $labelField = HeaderField::create('userforms-header', $this->Title ?: false) + $labelField = HeaderField::create('userforms-header-' . $this->ID, $this->Title ?: false) ->setHeadingLevel($this->Level); $labelField->addExtraClass('FormHeading'); $labelField->setAttribute('data-id', $this->Name); diff --git a/code/Model/Recipient/EmailRecipient.php b/code/Model/Recipient/EmailRecipient.php index d7eb4e3..237a504 100644 --- a/code/Model/Recipient/EmailRecipient.php +++ b/code/Model/Recipient/EmailRecipient.php @@ -575,6 +575,7 @@ class EmailRecipient extends DataObject foreach ($addresses as $address) { $trimAddress = trim($address ?? ''); if ($trimAddress && !Email::is_valid_address($trimAddress)) { + /** @phpstan-ignore translation.key (can't simplify the key without lots of duplicated code) */ $error = _t( __CLASS__.".$translation", "Invalid email address $trimAddress"