#77 Filtering options disappear when you use pagination

This commit is contained in:
Diatrex 2019-12-30 13:19:19 +03:00
parent 1a419f9a20
commit 60be8e32db
5 changed files with 9 additions and 12 deletions

View File

@ -42,6 +42,9 @@ return [
'currencies' => [
'name' => 'Active Currencies',
],
'latest-limit' => [
'name' => 'Latest Limit',
],
'site_address' => [
'name' => 'Site address',
'warning' => 'Auto added www. www.<strong>sitename.com</strong> ',

View File

@ -33,7 +33,9 @@
{% block listContent %}
{% include "visiosoft.module.advs::list/partials/ads" %}
{% endblock %}
</div>
<div class="d-flex justify-content-center">
{{ advs.links()|raw }}
</div>
{# <div class="category-tabs"></div>#}
</div>

View File

@ -48,8 +48,6 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
public function searchAdvs($type, $param = null, $customParameters = null, $limit = null)
{
//dd($param);
$isActiveDopings = new AdvModel();
$isActiveDopings = $isActiveDopings->is_enabled('dopings');
@ -246,7 +244,6 @@ class AdvRepository extends EntryRepository implements AdvRepositoryInterface
$query = $query->select('advs_advs.*', 'advs_advs_translations.name as name', 'advs_advs_translations.advs_desc as advs_desc');
}
if ($type == "list") {
return $query->paginate($this->settings->value('streams::per_page'));
} else {

View File

@ -465,14 +465,6 @@ class AdvsController extends PublicController
return redirect('/');
}
if ($advModel->is_enabled('store')) {
$StoreAdModel = new AdModel();
if ($request->store != "0" and $request->store != null) {
$StoreAdModel->createStoreAdLoggedInUser($request->store, $request->update_id);
} else {
$StoreAdModel->removeAdStore($request->update_id);
}
}
$adv->is_get_adv = $request->is_get_adv;
$adv->save();

View File

@ -10,4 +10,7 @@ return [
'detail_page_location' => [
'name' => 'Detail Page Location Field',
],
'show_search_location_btn' => [
'name' => 'Show Search Location Button',
],
];