I have tried using Taxonomy Entity Index to fix this but had no luck, any idea if this is possible?

Comments

Chi’s picture

Version: 7.x-1.6 » 7.x-1.x-dev
Issue summary: View changes

It seems some work has already done with this issue. But it is not completed yet.

Here is my workaround to get it working with users.

/**
 * Implements hook_views_data_alter().
 */
function HOOK_views_data_alter(&$data) {

  // Add filter handler for term ID with depth.
  $data['users']['shs_term_node_tid_depth'] = array(
    'help' => t('Display user if it has the selected taxonomy terms, or children of the selected terms. Due to additional complexity, this has fewer options than the versions without depth. Optionally the filter will use a simple hierarchical select for the selection of terms.'),
    'real field' => 'uid',
    'filter' => array(
      'title' => t('Has taxonomy terms (with depth; @type)', array('@type' => 'Simple hierarchical select')),
      'handler' => 'shs_handler_filter_term_node_tid_depth',
    ),
  );

}