Fix searching in select2 when importing subscribers
[MAILPOET-2795]
This commit is contained in:
@@ -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,
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@@ -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);
|
||||||
|
Reference in New Issue
Block a user