diff --git a/app/models/concerns/alegre_v2.rb b/app/models/concerns/alegre_v2.rb index 3f545eb9a..9bc2a70ab 100644 --- a/app/models/concerns/alegre_v2.rb +++ b/app/models/concerns/alegre_v2.rb @@ -358,7 +358,7 @@ def parse_similarity_results(project_media, field, results, relationship_type) context: result["context"], model: result["model"], source_field: get_target_field(project_media, field), - target_field: get_target_field(project_media, result["field"]), + target_field: get_target_field(project_media, result["field"] || result["context"]["field"]), relationship_type: relationship_type } ]