The line:
$query = _views_get_query($view, $views->real_args, $views->filter);
- was not returning a query (perhaps because the params were wrong?). I fixed this to use the non-private views_build_view function to create the count query, which seems to work just as well.
| Comment | File | Size | Author |
|---|---|---|---|
| viewscarousel_count_0.patch | 1.05 KB | owen barton |
Comments
Comment #1
recidive commentedCommited. Thanks.
Comment #2
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #3
brnnrc commentedThe patch does not work if the view contains any filter.
The line:
+ $total_rows = db_result(db_query($query['countquery']));
should be
+ $total_rows = db_result(db_query($query['countquery'],$query['args']));
bye