Skip to content
Snippets Groups Projects
Commit bdc455d0 authored by Oleksandr Kuzava's avatar Oleksandr Kuzava Committed by Oleksandr Kuzava
Browse files

Issue #3355311: Fix bug for empty bundles in config form.

parent 8ffb7549
No related branches found
Tags 1.3.15
No related merge requests found
......@@ -140,7 +140,8 @@ class ContentSyncConfigForm extends ConfigFormBase {
$allowed_types = [];
foreach ($source as $entity_type_id => $info) {
if ($info['enabled']) {
$allowed_types[$entity_type_id] = array_filter($info['bundles']);
$bundles = $info['bundles'] ?? [];
$allowed_types[$entity_type_id] = array_filter($bundles);
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment