fixed icons

This commit is contained in:
vedatakd 2021-04-16 09:45:13 +03:00
parent 1af16e10a0
commit df45a6c516

View File

@ -146,13 +146,13 @@ class CategoryRepository extends EntryRepository implements CategoryRepositoryIn
'c1.id',
'c1.slug',
'c1.parent_category_id',
'c1.icon_id',
'c1.icon',
't1.name',
'c2.id as c2_id',
'c2.slug as c2_slug',
'c2.icon as c2_icon',
'c2.parent_category_id as c2_parent_category_id',
't2.name as c2_name',
'file.id as file_id'
't2.name as c2_name'
)
->leftJoin($dBName . ' as c2', function ($join) {
$join->on('c2.parent_category_id', '=', 'c1.id')
@ -166,7 +166,6 @@ class CategoryRepository extends EntryRepository implements CategoryRepositoryIn
$join->on('c2.id', '=', 't2.entry_id')
->where('t2.locale', Request()->session()->get('_locale', setting_value('streams::default_locale')));
})
->leftJoin('files_files as file', 'c1.icon_id', 'file.id')
->whereNull('c1.deleted_at')
->whereNull('c1.parent_category_id')
->orderBy('c1.sort_order')