filter option for the recurring documents and transactions added #1pbthq3

This commit is contained in:
Sevan Nerse
2021-11-02 16:04:01 +03:00
parent 020439619b
commit 61923a08d8
3 changed files with 42 additions and 6 deletions

View File

@ -89,12 +89,12 @@ class SearchString extends Component
$column = $options['key'];
}
if (isset($options['relationship'])) {
if (isset($options['foreign_key'])) {
$column .= '.' . $options['foreign_key'];
} else {
$column .= '.id';
}
if (isset($options['relationship']) && isset($options['foreign_key']) && !empty($options['foreign_key'])) {
$column .= '.' . $options['foreign_key'];
}
if (isset($options['relationship']) && !isset($options['foreign_key'])) {
$column .= '.id';
}
return $column;