Use name as fallback label

[MAILPOET-2747]
This commit is contained in:
Pavel Dohnal
2020-03-12 10:35:04 +01:00
parent a98e98487b
commit a8b0f1de2b

View File

@ -332,6 +332,9 @@ class Pages {
$dateFormats[$customField['params']['date_type']]
);
}
if (!isset($customField['params']['label'])) {
$customField['params']['label'] = $customField['name'];
}
return $customField;
}, CustomField::findMany());