Skip to content
Snippets Groups Projects
Commit 748b9739 authored by Sergey Sergin's avatar Sergey Sergin
Browse files

Issue #2870635: Check entity keys, not format

parent 291db275
No related branches found
No related tags found
No related merge requests found
......@@ -362,10 +362,9 @@ abstract class ReferenceNormalizerBase extends EntityNormalizer {
$converted = [];
$system = ['type', 'author', 'keyword'];
foreach ($data as $key => $field) {
if (!empty($this->fieldsMapping[$key])) {
$converted[$this->fieldsMapping[$key]] = !in_array($key, $system) ? [$field] : $field;
$converted[$this->fieldsMapping[$key]] = !in_array($this->fieldsMapping[$key], $system) ? [$field] : $field;
}
}
......
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