Active
Project:
Views Hacks
Version:
6.x-1.x-dev
Component:
Views Filters Auto-refresh
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
15 May 2012 at 10:17 UTC
Updated:
25 May 2012 at 08:38 UTC
I have the need to pass explicitly the view object when calling the theme function in the view header, to get auto-refresh to play nicely with global filter and other views in a panel.
In order to get the view object, I use the views_get_view('view_name') function, and then I call the theme function, enabling ping process with no incremental refresh (see attachment).
Doing so, however, breaks the ping process since the timestamp does not get updated upon refresh.
Using Drupal core 6.26, Views 6.x-3.0 dev (2012-May-01) and Views Hacks dev (2012-May-11).
| Comment | File | Size | Author |
|---|---|---|---|
| attachment.zip | 2.99 KB | 17thColossus |
Comments
Comment #1
infojunkieThe latest version of the module fixes the case of ping + full refresh: #1570944: Ping does not work with full refresh
Comment #2
17thColossus commentedI am changing the status as "active" again, since the latest version fixes indeed the bug described in the linked issue, but the one I am reporting is slightly different.
I am using latest version and I have no problems in using ping + full refresh if views_autorefresh function is called with default argument (=NULL) for the $view argument, but if a value is passed to the argument, the timestamp does not get updated (please check attachment).
I need to do this because Global Filter module somehow overrides the current view with the one used for filtering results, so views_autorefresh gets the wrong parameters of the view that needs to have the auto-refresh process attached.