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 | 19 | $search = $this->request->getPost('search', 'string', NULL); |
20 | 20 | if (!empty($search)) { |
21 | 21 | $data = $this->models->getCustomers()->getDataByName($page); |
22 | + $total = 1; | |
22 | 23 | } |
23 | 24 | else { |
24 | 25 | $data = $this->models->getCustomers()->getAllData($page); | ... | ... |