Check if custom field is found in import

[MAILPOET-2535]
This commit is contained in:
Pavel Dohnal
2019-11-19 13:24:03 +01:00
committed by Jack Kitterhing
parent 0d3424f43a
commit 99ca99cae8

View File

@@ -153,6 +153,9 @@ class Import {
// if this is a custom column
if (in_array($column, $this->subscribers_custom_fields)) {
$custom_field = CustomField::findOne($column);
if (!$custom_field instanceof CustomField) {
continue;
}
// validate date type
if ($custom_field->type === 'date') {
$validation_rule = 'datetime';