Use name as fallback label
[MAILPOET-2747]
This commit is contained in:
@ -332,6 +332,9 @@ class Pages {
|
|||||||
$dateFormats[$customField['params']['date_type']]
|
$dateFormats[$customField['params']['date_type']]
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
if (!isset($customField['params']['label'])) {
|
||||||
|
$customField['params']['label'] = $customField['name'];
|
||||||
|
}
|
||||||
|
|
||||||
return $customField;
|
return $customField;
|
||||||
}, CustomField::findMany());
|
}, CustomField::findMany());
|
||||||
|
Reference in New Issue
Block a user