Fix searching in select2 when importing subscribers

[MAILPOET-2795]
This commit is contained in:
Ján Mikláš
2020-03-31 14:53:11 +02:00
committed by Veljko V
parent 143024afd8
commit c157082be2
2 changed files with 2 additions and 0 deletions

View File

@@ -28,6 +28,7 @@ export default (onCreateSegment) => {
onCreateSegment({ onCreateSegment({
id: response.data.id, id: response.data.id,
name: response.data.name, name: response.data.name,
text: response.data.name, // Required select2 property
subscriberCount: 0, subscriberCount: 0,
}); });

View File

@@ -37,6 +37,7 @@ class ImportExportFactory {
return [ return [
'id' => $segment['id'], 'id' => $segment['id'],
'name' => $segment['name'], 'name' => $segment['name'],
'text' => $segment['name'], // Required select2 property
'subscriberCount' => $segment['subscribers'], 'subscriberCount' => $segment['subscribers'],
]; ];
}, $segments); }, $segments);