Just added a new type to the list of types on my calender view.

This has a field_user (a user reference) field. So I added this field to the view fields list.

The nodes are showing, showing title, and date - but the userref is not displaying. node_data_field_user in the export:

  $view = new stdClass();
  $view->name = 'calendar';
  $view->description = 'Calendar';
  $view->access = array (
);
  $view->view_args_php = '';
  $view->page = TRUE;
  $view->page_title = 'Calendar';
  $view->page_header = '';
  $view->page_header_format = '1';
  $view->page_footer = '';
  $view->page_footer_format = '1';
  $view->page_empty = '';
  $view->page_empty_format = '1';
  $view->page_type = 'calendar';
  $view->url = 'cal';
  $view->use_pager = FALSE;
  $view->nodes_per_page = '100';
  $view->menu = TRUE;
  $view->menu_title = 'Calendar';
  $view->menu_tab = FALSE;
  $view->menu_tab_default = FALSE;
  $view->menu_tab_weight = '0';
  $view->sort = array (
  );
  $view->argument = array (
    array (
      'type' => 'calendar_year',
      'argdefault' => '2',
      'title' => '',
      'options' => '',
      'wildcard' => '',
      'wildcard_substitution' => '',
    ),
    array (
      'type' => 'calendar_month',
      'argdefault' => '2',
      'title' => '',
      'options' => '',
      'wildcard' => '',
      'wildcard_substitution' => '',
    ),
    array (
      'type' => 'calendar_day',
      'argdefault' => '2',
      'title' => '',
      'options' => '',
      'wildcard' => '',
      'wildcard_substitution' => '',
    ),
  );
  $view->field = array (
    array (
      'tablename' => 'node',
      'field' => 'title',
      'label' => '',
      'handler' => 'views_handler_field_nodelink',
      'options' => 'link',
    ),
    array (
      'tablename' => 'node_data_field_start',
      'field' => 'field_start_value',
      'label' => '',
      'handler' => 'content_views_field_handler_group',
      'options' => 'default',
    ),
    array (
      'tablename' => 'node_data_field_date',
      'field' => 'field_date_value',
      'label' => '',
      'handler' => 'content_views_field_handler_group',
      'options' => 'default',
    ),
    array (
      'tablename' => 'node_data_field_date_0',
      'field' => 'field_date_0_value',
      'label' => '',
      'handler' => 'content_views_field_handler_group',
      'options' => 'default',
    ),
    array (
      'tablename' => 'node_data_field_user',
      'field' => 'field_user_uid',
      'label' => '',
      'handler' => 'content_views_field_handler_group',
      'options' => 'default',
    ),
  );
  $view->filter = array (
    array (
      'tablename' => 'node',
      'field' => 'status',
      'operator' => '=',
      'options' => '',
      'value' => '1',
    ),
    array (
      'tablename' => 'node',
      'field' => 'type',
      'operator' => 'OR',
      'options' => '',
      'value' => array (
  0 => 'in_out',
  1 => 'lunch',
  2 => 'meeting',
),
    ),
  );
  $view->exposed_filter = array (
  );
  $view->requires = array(node, node_data_field_start, node_data_field_date, node_data_field_date_0, node_data_field_user);
  $views[$view->name] = $view;

Comments

KarenS’s picture

Status: Active » Fixed

I can't replicate this, userreference shows up just fine. There have been multiple fixes to both the date and the calendar module, so test on latest version of everything. Some fixes to calendar module were just committed today so you'll need either the cvs version or wait until tomorrow and pick up latest nightly development snapshot. Also make sure you have latest version of CCK since there have been changes there, too, possibly including changes to userreference.

Reopen if you still have problems after that.

chrissearle’s picture

Just to confirm (similar experience with the issues I was having with daterange).

Latest CCK, Views etc.

Remove content types, views.

Re-create them.

Display is now OK.

Anonymous’s picture

Status: Fixed » Closed (fixed)