The current user filter on answers gives the following message when constructing a view:
SQLSTATE[42S22]: Column not found: 1054 Unknown column 'quiz_node_results.uid1ORISNULLquiz_node_results.uid' in 'where clause'
My solution:
Change line 43 of sites/all/modules/quiz/includes/views/handlers/quiz_views_handler_filter_user_nullable.inc
from: $this->query->add_where($group, "$this->table_alias.$this->real_field $operator ***CURRENT_USER*** OR ISNULL($this->table_alias.$this->real_field)", $this->argument);
into: $this->query->add_where($group, "$this->table_alias.$this->real_field $operator", "***CURRENT_USER***", $operator);
Comments
Comment #1
upchuk commentedWorked for me!
Cheers!
Comment #2
sokrplare commentedNice going tracking this one down, Jaapx! Your solution worked for me, but I think it would introduce a bug as the comment above this line says:
I've reformatted the query to fit D7 query structures. Patch file attached!
Resources I used in writing this patch:
Edit - adding query output before and after - the
field_assignments_nodepart is custom to my setup so can be disregardedBefore
After
Comment #3
falcon commentedThanks!