Commit 6aa349e8a50c8a7d6bf257ba7ea9f7e46044ca7d
1 parent
9aeeae6d
fix total
Showing
1 changed file
with
1 additions
and
0 deletions
Show diff stats
src/app/backend/controllers/CustomersController.php
| @@ -19,6 +19,7 @@ class CustomersController extends \Phalcon\Mvc\Controller | @@ -19,6 +19,7 @@ class CustomersController extends \Phalcon\Mvc\Controller | ||
| 19 | $search = $this->request->getPost('search', 'string', NULL); | 19 | $search = $this->request->getPost('search', 'string', NULL); |
| 20 | if (!empty($search)) { | 20 | if (!empty($search)) { |
| 21 | $data = $this->models->getCustomers()->getDataByName($page); | 21 | $data = $this->models->getCustomers()->getDataByName($page); |
| 22 | + $total = 1; | ||
| 22 | } | 23 | } |
| 23 | else { | 24 | else { |
| 24 | $data = $this->models->getCustomers()->getAllData($page); | 25 | $data = $this->models->getCustomers()->getAllData($page); |