diff --git a/plugins/relationships/entity_from_field.inc b/plugins/relationships/entity_from_field.inc index d4880c6..9eb5e57 100644 --- a/plugins/relationships/entity_from_field.inc +++ b/plugins/relationships/entity_from_field.inc @@ -198,6 +198,10 @@ function ctools_entity_from_field_context($context, $conf) { return ctools_context_create_empty('entity:' . $to_entity, NULL); } } + else { + // In case the field was empty + return ctools_context_create_empty('entity:' . $to_entity, NULL); + } } }