Commit d9baed7a authored by Eric_A's avatar Eric_A Committed by fago

Issue #2171689 by Eric_A, following-up #1796110: Fixed entity views fields...

Issue #2171689 by Eric_A, following-up #1796110: Fixed entity views fields being broken when used on relationships.
parent 0b384a2b
......@@ -157,10 +157,10 @@ class EntityFieldHandlerHelper {
}
if (method_exists($handler->query, 'get_result_wrappers')) {
list($handler->entity_type, $handler->wrappers) = $handler->query->get_result_wrappers($values, NULL, $handler->real_field);
list($handler->entity_type, $handler->wrappers) = $handler->query->get_result_wrappers($values, $handler->relationship, $handler->real_field);
}
else {
list($handler->entity_type, $entities) = $handler->query->get_result_entities($values, NULL, $handler->real_field);
list($handler->entity_type, $entities) = $handler->query->get_result_entities($values, $handler->relationship, $handler->real_field);
$handler->wrappers = array();
foreach ($entities as $id => $entity) {
$handler->wrappers[$id] = entity_metadata_wrapper($handler->entity_type, $entity);
......
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