entity_translation compatibility
Signed-off-by: bachy <git@g-u-i.net>
This commit is contained in:
parent
addf98f5ab
commit
0ed294ff52
@ -170,7 +170,7 @@ function corresponding_entity_references_update($home_entity, $keys, $process_un
|
|||||||
// Detect whether the reference already exists.
|
// Detect whether the reference already exists.
|
||||||
$exists = FALSE;
|
$exists = FALSE;
|
||||||
|
|
||||||
if (isset($referenced_entity->{$keys['away_field']}[$referenced_entity->language]) && !empty($referenced_entity->{$keys['away_field']}[LANGUAGE_NONE])) {
|
if (isset($referenced_entity->{$keys['away_field']}[$referenced_entity->language]) || !empty($referenced_entity->{$keys['away_field']}[LANGUAGE_NONE])) {
|
||||||
foreach ($referenced_entity->{$keys['away_field']}[LANGUAGE_NONE] as $data) {
|
foreach ($referenced_entity->{$keys['away_field']}[LANGUAGE_NONE] as $data) {
|
||||||
if ($data['target_id'] == $home_entity->$ids['home']) {
|
if ($data['target_id'] == $home_entity->$ids['home']) {
|
||||||
$exists = TRUE;
|
$exists = TRUE;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user