mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-24 22:11:01 -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 ($categoryId) {
|
||||||
// if ($hierarchy = $categoryId->getMains()) {
|
|
||||||
// dd(123);
|
|
||||||
// }
|
|
||||||
|
|
||||||
$mainCats = $this->category_model->getMains($categoryId->id);
|
$mainCats = $this->category_model->getMains($categoryId->id);
|
||||||
$current_cat = $this->category_model->getCat($categoryId->id);
|
$current_cat = $this->category_model->getCat($categoryId->id);
|
||||||
$mainCats[] = $current_cat;
|
$mainCats[] = $current_cat;
|
||||||
$subCats = $this->category_repository->getSubCatById($categoryId->id);
|
$subCats = $this->category_repository->getSubCatById($categoryId->id);
|
||||||
$allCats = false;
|
$allCats = false;
|
||||||
// dd($mainCats);
|
|
||||||
} else {
|
} else {
|
||||||
$mainCats = $this->category_repository->mainCats();
|
$mainCats = $this->category_repository->mainCats();
|
||||||
$allCats = true;
|
$allCats = true;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user