Can't show contact subtype in search views
If you add "Contact Subtype" to a Search View, it's ignored. That's because templates/CRM/Contact/Form/Selector.tpl
explicitly says not to display it, because it's always added to the search result.
That happens in CRM_Contact_Selector
. However, nowhere in the class (or the entire codebase) is this element referenced after it's assigned. That's not true for any of the other fields added to the search result.
In fact, the only reference to it is in templates/CRM/Contact/Form/Selector.tpl
, where we're excluding it from the list of fields to display.
My conclusion is that there's no reason for it to be added to the row at all. Then we can remove it from the blacklist of fields in the template, and it can be used in search views.