mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#3472 listing design improvments - Integrate
This commit is contained in:
parent
d7b382dbb0
commit
8f39d05d42
@ -280,16 +280,11 @@ class AdvsController extends PublicController
|
||||
|
||||
|
||||
if ($categoryId) {
|
||||
// if ($hierarchy = $categoryId->getMains()) {
|
||||
// dd(123);
|
||||
// }
|
||||
|
||||
$mainCats = $this->category_model->getMains($categoryId->id);
|
||||
$current_cat = $this->category_model->getCat($categoryId->id);
|
||||
$mainCats[] = $current_cat;
|
||||
$subCats = $this->category_repository->getSubCatById($categoryId->id);
|
||||
$allCats = false;
|
||||
// dd($mainCats);
|
||||
} else {
|
||||
$mainCats = $this->category_repository->mainCats();
|
||||
$allCats = true;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user