Have a question about CiviCRM? Get it answered quickly at the new CiviCRM Stack Exchange Q+A siteThis forum was archived on 25 November 2017. Learn more.How to get involved.What to do if you think you've found a bug.
Since $subName is not passed to this function by the calling routine - civicrm\drupal\modules\views\civicrm.views.inc:4722 (roughly 4722) passes NULL in the final field - then the only $strWhere that is used is the final one looking for "civicrm_custom_group.extends_entity_column_value IS NULL" which will be incorrect, since that field is where the $subType is stored..? Am I off track here?I feel like there should be an extra "AND ( civicrm_custom_group.extends_entity_column_value LIKE '%$subType%' OR" in the final where clause, or the final where clause should just not exist.... Of course, I have no idea how many other code points call this function so I'm happy to be wrong