Check if custom field is found in import
[MAILPOET-2535]
This commit is contained in:
committed by
Jack Kitterhing
parent
0d3424f43a
commit
99ca99cae8
@@ -153,6 +153,9 @@ class Import {
|
|||||||
// if this is a custom column
|
// if this is a custom column
|
||||||
if (in_array($column, $this->subscribers_custom_fields)) {
|
if (in_array($column, $this->subscribers_custom_fields)) {
|
||||||
$custom_field = CustomField::findOne($column);
|
$custom_field = CustomField::findOne($column);
|
||||||
|
if (!$custom_field instanceof CustomField) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// validate date type
|
// validate date type
|
||||||
if ($custom_field->type === 'date') {
|
if ($custom_field->type === 'date') {
|
||||||
$validation_rule = 'datetime';
|
$validation_rule = 'datetime';
|
||||||
|
Reference in New Issue
Block a user