Add date creation to the default fields

[MAILPOET-3393]
This commit is contained in:
Pavel Dohnal
2021-03-01 15:06:02 +01:00
committed by Veljko V
parent 1e78769618
commit 5b56903eee
2 changed files with 2 additions and 2 deletions

View File

@@ -123,7 +123,7 @@ jQuery(document).ready(() => {
'list_status', 'list_status',
'global_status', 'global_status',
'subscribed_ip', 'subscribed_ip',
'last_subscribed_at', 'created_at',
'confirmed_at', 'confirmed_at',
'confirmed_ip', 'confirmed_ip',
]).trigger('change'); ]).trigger('change');

View File

@@ -70,7 +70,7 @@ class ImportExportFactory {
return [ return [
'id' => $fieldId, 'id' => $fieldId,
'name' => $fieldName, 'name' => $fieldName,
'type' => ($fieldId === 'confirmed_at') ? 'date' : null, 'type' => ($fieldId === 'confirmed_at' || $fieldId === 'created_at') ? 'date' : null,
'custom' => false, 'custom' => false,
]; ];
}, array_keys($subscriberFields), $subscriberFields); }, array_keys($subscriberFields), $subscriberFields);