Commit 80d1275b authored by czigor's avatar czigor Committed by Ra Mänd
Browse files

Issue #2049157 by czigor: Entity type is not added as condition in the INNER...

Issue #2049157 by czigor: Entity type is not added as condition in the INNER JOIN when using a reverse relationship
parent 00506d1b
......@@ -57,6 +57,17 @@ function field_collection_field_views_data($field) {
'base' => $entity_info['base table'],
'base field' => $entity_info['entity keys']['id'],
'label' => t('!field_name', array('!field_name' => $field['field_name'])),
'join_extra' => array(
0 => array(
'field' => 'entity_type',
'value' => $entity_type,
),
1 => array(
'field' => 'deleted',
'value' => 0,
'numeric' => TRUE,
),
),
);
}
......
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