mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02:00
Merge branch '6' into 7
This commit is contained in:
commit
01dcf8ab1c
@ -70,7 +70,7 @@ class EditableFormHeading extends EditableFormField
|
|||||||
|
|
||||||
public function getFormField()
|
public function getFormField()
|
||||||
{
|
{
|
||||||
$labelField = HeaderField::create('userforms-header', $this->Title ?: false)
|
$labelField = HeaderField::create('userforms-header-' . $this->ID, $this->Title ?: false)
|
||||||
->setHeadingLevel($this->Level);
|
->setHeadingLevel($this->Level);
|
||||||
$labelField->addExtraClass('FormHeading');
|
$labelField->addExtraClass('FormHeading');
|
||||||
$labelField->setAttribute('data-id', $this->Name);
|
$labelField->setAttribute('data-id', $this->Name);
|
||||||
|
@ -575,6 +575,7 @@ class EmailRecipient extends DataObject
|
|||||||
foreach ($addresses as $address) {
|
foreach ($addresses as $address) {
|
||||||
$trimAddress = trim($address ?? '');
|
$trimAddress = trim($address ?? '');
|
||||||
if ($trimAddress && !Email::is_valid_address($trimAddress)) {
|
if ($trimAddress && !Email::is_valid_address($trimAddress)) {
|
||||||
|
/** @phpstan-ignore translation.key (can't simplify the key without lots of duplicated code) */
|
||||||
$error = _t(
|
$error = _t(
|
||||||
__CLASS__.".$translation",
|
__CLASS__.".$translation",
|
||||||
"Invalid email address $trimAddress"
|
"Invalid email address $trimAddress"
|
||||||
|
Loading…
Reference in New Issue
Block a user