Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Filters break when having two relations to the same class #2491
if there is an object like this
when a module admin search is done by the purchaser name it looks for Orders which have Staff.Name as the purchaser,
this happen because the DataObject->getReverseAssociation function does an array flip to and return the get the foreign keys.
I could fix by modifying these functions
lined 589 of DataQuery.php
$foreignKey = $model->getReverseAssociation($component, $rel);