updated admin_menu, entity_translation, addressfield, addressfield_token, autocomplete_deluxe
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* @file
|
||||
* Contains the relationship plugin for relating entities to translation metadata.
|
||||
* Contains a views plugin for relating entities to translation metadata.
|
||||
*/
|
||||
|
||||
/**
|
||||
@@ -27,7 +28,10 @@ class entity_translation_handler_relationship extends views_handler_relationship
|
||||
$alias = $def['table'] . '_' . $this->table;
|
||||
// We need to add a condition on entity type to the join to avoid getting
|
||||
// relationships to entities with other types.
|
||||
$join->extra = "$alias.entity_type = '{$def['entity type']}'";
|
||||
$join->extra = array(
|
||||
array('field' => 'entity_type', 'value' => $def['entity type']),
|
||||
);
|
||||
$this->alias = $this->query->add_relationship($alias, $join, 'entity_translation', $this->relationship);
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user