continue;
}
- if ($field['pseudoconstant']) {
+ if (CRM_Utils_Array::value('pseudoconstant', $field)) {
continue;
}
elseif ($field['pseudoconstant']) {
$this->optionValueQuery(
$name, $op, $value, $grouping,
- CRM_Core_PseudoConstant::{$field['pseudoconstant']['name']}(),
+ CRM_Core_PseudoConstant::get('CRM_Contact_DAO_Contact', $field['dbName']),
$field,
$field['title'],
'String',
$title = array(
'gender' => array(
'name' => 'gender',
+ 'dbName' => 'gender_id',
'title' => ts('Gender'),
'headerPattern' => '/^gender$/i',
'pseudoconstant' => $contactFields['gender_id']['pseudoconstant'],
),
'individual_prefix' => array(
'name' => 'individual_prefix',
+ 'dbName' => 'prefix_id',
'title' => ts('Individual Prefix'),
'headerPattern' => '/^(prefix|title)/i',
'pseudoconstant' => $contactFields['prefix_id']['pseudoconstant'],
),
'individual_suffix' => array(
'name' => 'individual_suffix',
+ 'dbName' => 'suffix_id',
'title' => ts('Individual Suffix'),
'headerPattern' => '/^suffix$/i',
'pseudoconstant' => $contactFields['suffix_id']['pseudoconstant'],