Download & Extend

Views pager with Ajax drops arguments

Project:Viewfield
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:active

Issue Summary

I'm using a custom built module that allows for a View built off of a table from an external data source.

When I build a custom content type using viewfield to insert my view into the node using arguments to filter the view it works great.
If I check "use pager" in Views it works.
If I use a pager with Ajax it breaks. - Judging from the URL string it looks like the arguments defined in the node are not being passed back to the pager on any page after the first. In other words, the initial page view is correct, but any page accessed by the pager link returns all rows in my view table.

Here's a sample URL string:
http://samplesite.org/node/211?page=3&js=1&view_name=sample_table&view_d...

See how "&view_args=" it should be "&view_args=myfield" and ideally it would be populated from the arguments field in my content edit form.

If I manually edit the URL string to have the argument I use in the node edit form within the string, i.e.
http://samplesite.org/node/211?page=3&js=1&view_name=sample_table&view_d...

Am I going about this wrong?

Thanks,
David

Comments

#1

More readable URL strings:

http://samplesite.org/node/211?page=3&js=1&view_name=sample_table&view_display_id=default&view_args=&view_path=node%2F211&view_base_path=null&view_dom_id=2&pager_element=0

http://samplesite.org/node/211?page=3&js=1&view_name=sample_table&view_display_id=default&view_args=32&view_path=node%2F211&view_base_path=null&view_dom_id=2&pager_element=0