Needs review
Project:
Views filter view
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Sep 2012 at 21:08 UTC
Updated:
17 Apr 2013 at 01:29 UTC
Jump to comment: Most recent file
To reproduce: Add filter, select view to filter by. Apply.
Additional details:
Notice: Undefined property: view::$base_field_alias in views_filter_view_get_items() (line 40 of views_filter_view.module).
Notice: Undefined offset: 1 in views_filter_view_handler_filter_view->query() (line 55 of views_filter_view_handler_view.inc).
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | empty_prop-1784078-3.patch | 4.39 KB | deciphered |
| #1 | 1784078-views_filter_view-empty_prop.patch | 710 bytes | 13rac1 |
Comments
Comment #1
13rac1 commentedUsing the alias if available, and using $base_field otherwise seems to work correctly. I'm not an expert on Views so there may be a better method. Either way, this module works correctly now. Thanks!
Comment #2
dawehnerUsing the base_table as field seems simply wrong. What about using $this->view->query->base_field ?
Comment #3
decipheredOk, so I also had this issue, but the problem for me was that I was using a User view with a Representative Node relationship as the View filter for a Node view, so the base field of the User view was UID where the data that needed to be returned was NID.
To resolve the issue I did a fair amount of work to the module so that the base field of the View that is to be filtered is sent to the View that is being used as the filter.
I tested it with a quick Node to Node view setup as well as my User to Node view and it worked well.
Patch attached.