*
* @access public
*
- * @internal param object $page - the view page which created this one
- *
* @return void
* @static
*/
'style'
);
- if ($displayStyle === 'Tab with table' && $this->_multiRecordDisplay != 'single') {
+ if ($this->_multiRecordDisplay != 'single') {
$id = "custom_{$this->_groupId}";
$this->ajaxResponse['tabCount'] = CRM_Contact_BAO_Contact::getCountComponent($id, $this->_contactId, $groupTree[$this->_groupId]['table_name']);
+ }
+
+ if ($displayStyle === 'Tab with table' && $this->_multiRecordDisplay != 'single') {
$ctype = CRM_Core_DAO::getFieldValue('CRM_Contact_DAO_Contact',
$this->_contactId,
'contact_type'