key variable must be considered if it is defined in search string

This commit is contained in:
Sevan Nerse 2021-02-12 13:53:27 +03:00
parent 6a216d3f9e
commit 14aa49dfdb

View File

@ -80,6 +80,10 @@ class SearchString extends Component
protected function getFilterKey($column, $options)
{
if (isset($options['key'])) {
$column = $options['key'];
}
if (isset($options['relationship'])) {
$column .= '.id';
}