Active
Project:
Buddylist
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
30 Mar 2007 at 07:01 UTC
Updated:
2 Apr 2007 at 13:56 UTC
Filters do not work at least with the current views module (5.x-1.5, 2007-Jan-22). Apparently the filters would need handlers, see line 129 of views_query.inc ( "if (function_exists($filterinfo['handler'])) {" ).
Could you please fix it? If yes, roughly when can it be expected? If no, any volunteers (I am not familiar with this stuff)?
Comments
Comment #1
attila75 commentedThis seems to be a views UI bug, because the filter value does not get set to '***CURRENT_USER***' as it should in view_filter table. I am using the filter "buddylist_users.currentuid". A colleague has it working on his computer. Further investigation is needed.
Comment #2
attila75 commentedThe problem happens when the filter value ("Currently Logged In User") is not selected from the list when creating the view.
I checked and found what is missing from the buddylist filters: this is the
'list-type' => 'select',
line. See e.g. the following from views_node.inc from the views module:
'currentuid' => array(
'field' => 'uid',
'name' => t('Node: Author is Current User'),
'operator' => 'views_handler_operator_eqneq',
'list' => 'views_handler_filter_usercurrent',
'list-type' => 'select',
'help' => t('This allows you to filter by whether or not the node was authored by the logged in user of the view.'),
),
I guess that you need to add it to all of the buddylist filters. Then you need to empty the cache. I am afraid that saving the module list as suggested by the views module README did not produce the result. "Empty cache" from the devel module worked.