Created by: motdotla
… on the root entity
First, I love Administrate.
This PR is to fix a search issue I ran up against.
In the scenario, where I have configured search to both a belongs_to searchable_field
AND some other_field
in the root entity, the following happens:
- I can successfully search the belongs_to
belongs_to.searchable_field
when the root entity's belongs_to is assigned - I can successfully search the belongs_to
belongs_to.searchable_field
when the root entity's belongs_to is null - I can successfully search the
other_field
when the root entity's belongs_to is assigned - I can NOT successfully search the
other_field
when the root entity's belongs_to is null
This PR fixes problem #4 (caused by an inner join) by using a left join.
Is this PR useful?