Commit 8de8cac1 authored by levelos's avatar levelos Committed by fago

Issue #2072909 by levelos: Fixed EntityDefaultExtraFieldsController...

Issue #2072909 by levelos: Fixed EntityDefaultExtraFieldsController incorrectly sets an display extra field for fields.
parent 35008f22
......@@ -240,7 +240,9 @@ class EntityDefaultExtraFieldsController implements EntityExtraFieldsControllerI
$this->propertyInfo += array('bundles' => array());
foreach ($this->propertyInfo['bundles'] as $bundle_name => $info) {
foreach ($info['properties'] as $name => $property_info) {
$extra[$this->entityType][$bundle_name]['display'][$name] = $this->generateExtraFieldInfo($name, $property_info);
if (empty($property_info['field'])) {
$extra[$this->entityType][$bundle_name]['display'][$name] = $this->generateExtraFieldInfo($name, $property_info);
}
}
}
return $extra;
......
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