mirror of
https://github.com/openclassify/openclassify.git
synced 2026-02-10 07:16:06 -06:00
#2595 e-madencilik export bug fixed
This commit is contained in:
parent
6df0252402
commit
c3a1b29336
@ -35,10 +35,10 @@ class AdvsExport implements WithMapping, FromCollection, WithHeadings
|
|||||||
->leftJoin('location_cities_translations','advs_advs.city', 'location_cities_translations.entry_id')
|
->leftJoin('location_cities_translations','advs_advs.city', 'location_cities_translations.entry_id')
|
||||||
->whereIn('cats_category_translations.locale', array(Request()->session()->get('_locale'), setting_value('streams::default_locale'), 'en'))
|
->whereIn('cats_category_translations.locale', array(Request()->session()->get('_locale'), setting_value('streams::default_locale'), 'en'))
|
||||||
->whereIn('advs_advs_translations.locale', array(Request()->session()->get('_locale'), setting_value('streams::default_locale'), 'en'))
|
->whereIn('advs_advs_translations.locale', array(Request()->session()->get('_locale'), setting_value('streams::default_locale'), 'en'))
|
||||||
->select(['advs_advs.*', 'location_countries_translations.name as country', 'location_cities_translations.name as city_name', DB::raw("group_concat(default_cats_category_translations.name SEPARATOR ', ') as categories")])
|
->select(['advs_advs_translations.name', 'advs_advs_translations.advs_desc', 'location_countries_translations.name as country', 'location_cities_translations.name as city_name', DB::raw("group_concat(default_cats_category_translations.name SEPARATOR ', ') as categories")])
|
||||||
->groupBy('advs_advs.id')
|
->groupBy('advs_advs.id')
|
||||||
->get();
|
->get();
|
||||||
|
//dd($cats);
|
||||||
return $cats;
|
return $cats;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -71,7 +71,6 @@ class AdvsExport implements WithMapping, FromCollection, WithHeadings
|
|||||||
trans('module::field.categories.name'),
|
trans('module::field.categories.name'),
|
||||||
trans('module::field.country.name'),
|
trans('module::field.country.name'),
|
||||||
trans('module::field.city.name'),
|
trans('module::field.city.name'),
|
||||||
trans('module::field.district.name'),
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user