Sync: use string keys for object_name

This commit is contained in:
Thomas Gelf 2019-05-22 17:06:24 +02:00
parent 4b68d68554
commit 6bf1c30c2f

View File

@ -446,6 +446,8 @@ class Sync
$sourceId = $source->id;
foreach ($this->imported[$sourceId] as $key => $row) {
// Workaround: $a["10"] = "val"; -> array_keys($a) = [(int) 10]
$key = (string) $key;
if (! array_key_exists($key, $objects)) {
// Safe default values for object_type and object_name
if ($ruleObjectType === 'datalistEntry') {