From a92879b9e2b8d871f30f3b2fc18c8c6c514737c2 Mon Sep 17 00:00:00 2001 From: Fatih Alp Date: Thu, 26 Aug 2021 17:24:35 +0300 Subject: [PATCH] Revert "#4452 [evdepismis-theme] Create theme" --- .../cats-module/src/Category/CategoryModel.php | 16 ---------------- .../src/Http/Controller/AjaxController.php | 6 +----- 2 files changed, 1 insertion(+), 21 deletions(-) diff --git a/addons/default/visiosoft/cats-module/src/Category/CategoryModel.php b/addons/default/visiosoft/cats-module/src/Category/CategoryModel.php index d2df1bab8..24c2fbd02 100644 --- a/addons/default/visiosoft/cats-module/src/Category/CategoryModel.php +++ b/addons/default/visiosoft/cats-module/src/Category/CategoryModel.php @@ -1,26 +1,10 @@ icon === null) { - return $this->dispatch(new MakeImageInstance('visiosoft.module.advs::images/listing/sample-cat-icon.svg', 'img'))->url(); - } - - return url($this->icon); - } - public function getCat($id) { return CategoryModel::query() diff --git a/addons/default/visiosoft/location-module/src/Http/Controller/AjaxController.php b/addons/default/visiosoft/location-module/src/Http/Controller/AjaxController.php index 50e5ebc7c..0d804293c 100644 --- a/addons/default/visiosoft/location-module/src/Http/Controller/AjaxController.php +++ b/addons/default/visiosoft/location-module/src/Http/Controller/AjaxController.php @@ -51,10 +51,6 @@ class AjaxController extends PublicController $id = explode(',', $this->request->id); $query = $this->cityRepository->getModel()->whereIn('parent_country_id', $id); - if ($this->request->search) { - $query->where('name', 'like', '%' . $this->request->search . '%'); - } - return $this->queryOrder($query, $this->cityRepository); } } @@ -158,4 +154,4 @@ class AjaxController extends PublicController } } -} +} \ No newline at end of file