Alias Filter Added

This commit is contained in:
devansh bawari 2020-12-24 16:50:40 +05:30
parent 3c49cd9fff
commit ca2de63b48
1 changed files with 2 additions and 0 deletions

View File

@ -53,6 +53,8 @@ class ChannelDataGrid extends DataGrid
->addSelect('channels.id', 'channels.code', 'channel_translations.locale', 'channel_translations.name as translated_name', 'channels.hostname') ->addSelect('channels.id', 'channels.code', 'channel_translations.locale', 'channel_translations.name as translated_name', 'channels.hostname')
->where('channel_translations.locale', '=', $this->locale); ->where('channel_translations.locale', '=', $this->locale);
$this->addFilter('translated_name', 'channel_translations.name');
$this->setQueryBuilder($queryBuilder); $this->setQueryBuilder($queryBuilder);
} }