}
elseif ($fieldName != 'id') {
if ($fieldName == 'prefix_id') {
- // Hack - profile views use different field name than normal views!
- $this->_pseudoConstantsSelect['prefix_id'] =
- $this->_pseudoConstantsSelect['individual_prefix'] = array(
- 'pseudoField' => 'prefix_id',
- 'idCol' => "prefix_id",
- 'bao' => 'CRM_Contact_BAO_Contact'
- );
+ $this->_pseudoConstantsSelect['individual_prefix'] = array('pseudoField' => 'prefix_id', 'idCol' => "prefix_id", 'bao' => 'CRM_Contact_BAO_Contact');
}
if ($fieldName == 'suffix_id') {
- // Hack - profile views use different field name than normal views!
- $this->_pseudoConstantsSelect['suffix_id'] =
- $this->_pseudoConstantsSelect['individual_suffix'] = array(
- 'pseudoField' => 'suffix_id',
- 'idCol' => "suffix_id",
- 'bao' => 'CRM_Contact_BAO_Contact'
- );
+ $this->_pseudoConstantsSelect['individual_suffix'] = array('pseudoField' => 'suffix_id', 'idCol' => "suffix_id", 'bao' => 'CRM_Contact_BAO_Contact');
}
if ($fieldName == 'gender_id') {
- // Hack - profile views use different field name than normal views!
- $this->_pseudoConstantsSelect['gender_id'] =
- $this->_pseudoConstantsSelect['gender'] = array(
- 'pseudoField' => 'gender_id',
- 'idCol' => "gender_id",
- 'bao' => 'CRM_Contact_BAO_Contact'
- );
+ $this->_pseudoConstantsSelect['gender'] = array('pseudoField' => 'gender_id', 'idCol' => "gender_id", 'bao' => 'CRM_Contact_BAO_Contact');
}
+ if ($name == 'communication_style_id') {
+ $this->_pseudoConstantsSelect['communication_style'] = array('pseudoField' => 'communication_style_id', 'idCol' => "communication_style_id", 'bao' => 'CRM_Contact_BAO_Contact');
+ }
$this->_select[$name] = "contact_a.{$fieldName} as `$name`";
}
}
'visibility' => 'User and User Admin Only',
);
- $this->_groupId2 = $this->groupCreate($group, 3);
+ $this->_groupId2 = $this->groupCreate($group);
- $params = array(
- 'contact_id.1' => $this->_contactId,
- 'group_id' => $this->_groupId2,
- );
$this->_group = array(
$this->_groupId1 => array('title' => 'New Test Group Created',