Listing method update for Newsletters/Forms/Segments/Subscribers

- updated unit tests
This commit is contained in:
Jonathan Labreuille
2016-09-08 14:34:21 +02:00
parent d6eaa4ac8a
commit 0c5589a3e3
10 changed files with 123 additions and 86 deletions

View File

@@ -106,6 +106,7 @@ class Handler {
);
}
// get items and total count
if(method_exists($this->model_class, 'listingQuery')) {
$custom_query = call_user_func_array(
array($this->model_class, 'listingQuery'),
@@ -135,7 +136,6 @@ class Handler {
->findMany();
}
return array(
'count' => $count,
'filters' => $filters,