Skip to content

Commit

Permalink
Merge pull request #24505 from colemanw/fkFields
Browse files Browse the repository at this point in the history
SearchKit - Show other FK fields in the bridge join selector
  • Loading branch information
colemanw authored Sep 13, 2022
2 parents 927da90 + f3d559a commit d7cd2df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -511,7 +511,7 @@
// Add extra searchable fields from bridge entity
if (join && join.bridge) {
formatFields(_.filter(searchMeta.getEntity(join.bridge).fields, function(field) {
return (field.name !== 'id' && field.name !== 'entity_id' && field.name !== 'entity_table' && !field.fk_entity);
return (field.name !== 'id' && field.name !== 'entity_id' && field.name !== 'entity_table' && field.fk_entity !== entityName);
}), result, prefix);
}

Expand Down

0 comments on commit d7cd2df

Please sign in to comment.