Merge pull request #1852 from SevanNerse/master

key variable must be considered if it is defined in search string
This commit is contained in:
Cüneyt Şentürk 2021-02-12 15:36:59 +03:00 committed by GitHub
commit ed9c72c0c6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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