Skip to content

Commit

Permalink
Merge branch '6.2' into 6
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Aug 14, 2024
2 parents 86c7eed + f5cfc22 commit 4c23cad
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion code/Model/EditableFormField/EditableFormHeading.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public function getCMSFields()

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);
Expand Down
1 change: 1 addition & 0 deletions code/Model/Recipient/EmailRecipient.php
Original file line number Diff line number Diff line change
Expand Up @@ -575,6 +575,7 @@ public function validate()
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"
Expand Down

0 comments on commit 4c23cad

Please sign in to comment.