Skip to content

Commit

Permalink
CV2-5050 readd target_field value from broken case for text (#2117)
Browse files Browse the repository at this point in the history
  • Loading branch information
DGaffney authored Oct 31, 2024
1 parent 06b32dc commit df7597f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/concerns/alegre_v2.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
]
Expand Down

0 comments on commit df7597f

Please sign in to comment.