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.

CommentFileSizeAuthor
viewscarousel_count_0.patch1.05 KBowen barton

Comments

recidive’s picture

Version: » 5.x-1.x-dev
Status: Needs review » Fixed

Commited. Thanks.

Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

brnnrc’s picture

Status: Closed (fixed) » Patch (to be ported)

The 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