Closed (fixed)
Project:
Views (for Drupal 7)
Version:
6.x-2.0-rc3
Component:
exposed filters
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
18 Sep 2008 at 05:35 UTC
Updated:
3 Oct 2008 at 02:12 UTC
hello
im using drupal 6.4 + views 6.x-2rc3 + cck 6.x-2.0-rc7
i have built a view with a filter to choose content type using rc2.
this filter is not working anymore since update to rc3.
this is working with "" value but not with individual value.
error message :
warning: array_values() [function.array-values]: The argument should be an array in /home/alpha/www/mysite/demo/sites/all/modules/views/handlers/views_handler_filter_in_operator.inc on line 187.
view export :
$view = new view;
$view->name = 'my_orders';
$view->description = '';
$view->tag = '';
$view->view_php = '';
$view->base_table = 'node';
$view->is_cacheable = FALSE;
$view->api_version = 2;
$view->disabled = FALSE; /* Edit this to true to make a default view disabled initially */
$handler = $view->new_display('default', 'Defaults', 'default');
$handler->override_option('fields', array(
'created' => array(
'label' => 'Post date',
'date_format' => 'small',
'custom_date_format' => '',
'exclude' => 0,
'id' => 'created',
'table' => 'node',
'field' => 'created',
'relationship' => 'none',
),
'title' => array(
'label' => 'Title',
'link_to_node' => 1,
'exclude' => 0,
'id' => 'title',
'table' => 'node',
'field' => 'title',
'relationship' => 'none',
),
'type' => array(
'label' => 'Type',
'link_to_node' => 0,
'exclude' => 0,
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
));
$handler->override_option('arguments', array(
'name' => array(
'id' => 'name',
'table' => 'users',
'field' => 'name',
),
));
$handler->override_option('filters', array(
'uid_current' => array(
'operator' => '=',
'value' => 1,
'group' => '0',
'exposed' => FALSE,
'expose' => array(
'operator' => FALSE,
'label' => '',
),
'id' => 'uid_current',
'table' => 'users',
'field' => 'uid_current',
'relationship' => 'none',
),
'type' => array(
'operator' => 'in',
'value' => array(
'colorseparation' => 'colorseparation',
'digitizing' => 'digitizing',
'heattransfer' => 'heattransfer',
'vectorart' => 'vectorart',
),
'group' => '0',
'exposed' => TRUE,
'expose' => array(
'use_operator' => 0,
'operator' => 'type_op',
'identifier' => 'type',
'label' => 'Node: Type',
'optional' => 1,
'single' => 1,
'remember' => 0,
'reduce' => 1,
),
'id' => 'type',
'table' => 'node',
'field' => 'type',
'relationship' => 'none',
),
));
$handler->override_option('access', array(
'type' => 'none',
));
$handler->override_option('style_plugin', 'table');
$handler->override_option('style_options', array(
'grouping' => '',
'override' => 1,
'sticky' => 0,
'order' => 'desc',
'columns' => array(
'created' => 'created',
'title' => 'title',
'type' => 'type',
),
'info' => array(
'created' => array(
'sortable' => 1,
'separator' => '',
),
'title' => array(
'sortable' => 1,
'separator' => '',
),
'type' => array(
'sortable' => 1,
'separator' => '',
),
),
'default' => 'created',
));
mysql export using individual value :
SELECT node.nid AS nid,
node.created AS node_created,
node.title AS node_title,
node.type AS node_type
FROM node node
INNER JOIN users users ON node.uid = users.uid
WHERE (users.uid = ***CURRENT_USER***) AND (node.type in (''))
ORDER BY node_created DESC
mysql export with value :
SELECT node.nid AS nid,
node.created AS node_created,
node.title AS node_title,
node.type AS node_type
FROM node node
INNER JOIN users users ON node.uid = users.uid
WHERE (users.uid = ***CURRENT_USER***) AND (node.type in ('colorseparation', 'digitizing', 'heattransfer', 'vectorart'))
ORDER BY node_created DESC
Comments
Comment #1
ssm2017 Binder commentedsorry, but i hadent previewed my post well
the value is working with
<any>but not working with individual value.the second mysql request is used with
<any>valueComment #2
merlinofchaos commentedFixed in CVS. A new -dev should roll around midnight GMT.
Comment #3
ssm2017 Binder commentedthank you for correcting, but now i have this : http://drupal.org/node/310531
Comment #4
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.