PluginProbe
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress / 11.1.0
AcyMailing – An Ultimate Newsletter Plugin and Marketing Automation Solution for WordPress v11.1.0
11.1.1 11.1.0 11.0.5 11.0.4 11.0.3 11.0.2 11.0.1 11.0.0 10.11.1 10.11.0 10.10.2 10.10.1 10.10.0 10.9.1 trunk 10.0.0 10.0.1 10.1.0 10.1.1 10.1.2 10.1.3 10.1.4 10.2.0 10.2.1 10.2.2 All 62 releases
← All changes | back/Controllers/Forms/Listing.php +4 -2 10.11.1 → 11.1.0 View file →
@@ -14,12 +14,13 @@
14 14 $pagination = new PaginationHelper();
15 15 $searchFilter = $this->getVarFiltersListing('string', 'forms_search', '');
16 16 $status = $this->getVarFiltersListing('string', 'forms_status', '');
17 17 $tagFilter = $this->getVarFiltersListing('string', 'forms_tag', '');
18 - $ordering = $this->getVarFiltersListing('string', 'forms_ordering', 'id');
19 - $orderingSortOrder = $this->getVarFiltersListing('string', 'forms_ordering_sort_order', 'asc');
18 + $ordering = $this->getVarFiltersListing('cmd', 'forms_ordering', 'id');
19 + $orderingSortOrder = $this->getVarFiltersListing('cmd', 'forms_ordering_sort_order', 'asc');
20 20 $formClass = new FormClass();
21 21
22 + // Get pagination data
22 23 $formsPerPage = $pagination->getListLimit();
23 24 $page = $this->getVarFiltersListing('int', 'forms_pagination_page', 1);
24 25
25 26 $requestData = [
@@ -33,8 +34,9 @@
33 34 ];
34 35
35 36 $matchingForms = $this->getMatchingElementsFromData($requestData, $status, $page);
36 37
38 + // Prepare the pagination
37 39 $pagination->setStatus($matchingForms['total']->total, $page, $formsPerPage);
38 40
39 41 $filters = [
40 42 'all' => $matchingForms['total']->total,