Patch (to be ported)
Project:
Views carousel
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
16 Apr 2008 at 23:40 UTC
Updated:
10 Feb 2010 at 08:42 UTC
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