Commit c8ceeb02 authored by Sebastian Castro's avatar Sebastian Castro

Import: prevent empty keys

parent 76158cac
......@@ -132,6 +132,7 @@ class ElementImportMappingService
private function collectKey($key, $parentKey = null) {
if (in_array($key, ['__initializer__', '__cloner__', '__isInitialized__'])) return;
$keyName = $parentKey ? $parentKey . '/' . $key : $key;
if (!$keyName || strlen($keyName) == 0) return;
if (!in_array($keyName, $this->allNewFields)) $this->allNewFields[] = $keyName;
if (!array_key_exists($keyName, $this->ontologyMapping)) {
$keyLower = str_replace('_', '', strtolower($key));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment