I have a block view that has a Term Id as a contextual filter. I have it set to provide a default argument if the argument doesn't exist (term id from URL). Additionally, the page on which I am assigning it is a page view, using the same contextual filter. My block wasn't showing up and from debugging, it wasn't getting past the views' build. After debugging through the code, I eventually looked into views_plugin_argument_default_taxonomy_tid.inc where I noticed that at the bottom of the argument initialization code, views looks for the current views-page and inherits the argument. However, when I dump that data out, it appears that $views_page is a view itself, and the ->view property is empty. I patched it with the attached and now my block shows up and appears to inherit the argument correctly. Can you provide any feedback on the patch or this issue? Is this an appropriate and necessary fix?

Comments

dawehner’s picture

Status: Active » Needs review
StatusFileSize
new1.44 KB

Fixed on another place, new patch.

dawehner’s picture

Status: Needs review » Fixed

So commited this patch. Thanks for reporting and providing a patch.

Commited to 7.x-3.x

Status: Fixed » Closed (fixed)

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