Merge branch 'master' of github.com:akaunting/akaunting

This commit is contained in:
Cüneyt Şentürk 2021-02-12 17:52:05 +03:00
commit f47b2ad249

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';
}
@ -104,7 +108,7 @@ class SearchString extends Component
if (strpos($this->model, 'Modules') !== false) {
$module_class = explode('\\', $this->model);
$prefix = Str::slug($module_class[1], '-') . '::';
$prefix = Str::kebab($module_class[1]) . '::';
$translation_keys[] = $prefix . 'general.';
$translation_keys[] = $prefix . 'search_string.columns.';