mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
#77 Filtering options disappear when you use pagination
This commit is contained in:
parent
1a419f9a20
commit
60be8e32db
@ -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> ',
|
||||
|
||||
@ -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>
|
||||
|
||||
@ -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 {
|
||||
|
||||
@ -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();
|
||||
|
||||
|
||||
@ -10,4 +10,7 @@ return [
|
||||
'detail_page_location' => [
|
||||
'name' => 'Detail Page Location Field',
|
||||
],
|
||||
'show_search_location_btn' => [
|
||||
'name' => 'Show Search Location Button',
|
||||
],
|
||||
];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user