}
$this->assign('noSearchable', $noSearchable);
- $this->_location_types = CRM_Core_PseudoConstant::locationType();
+ $this->_location_types = CRM_Core_PseudoConstant::get('CRM_Core_DAO_Address', 'location_type_id');
$defaultLocationType = CRM_Core_BAO_LocationType::getDefault();
/**
}
}
$sel3[''] = NULL;
- $phoneTypes = CRM_Core_PseudoConstant::phoneType();
+ $phoneTypes = CRM_Core_PseudoConstant::get('CRM_Core_DAO_Phone', 'phone_type_id');
ksort($phoneTypes);
foreach ($sel1 as $k => $sel) {
}
}
+ // CRM_Core_Error::debug(array($sel1, $sel2, $sel3, $sel4));
$sel->setOptions(array($sel1, $sel2, $sel3, $sel4));
// proper interpretation of spec in CRM-8732
if (in_array('Membership', $groupType) || in_array('Contribution', $groupType)
|| in_array('Organization', $groupType) || in_array('Household', $groupType) || in_array('Activity', $groupType)
) {
- $errors['field_name'] = ts('Cannot add or update profile field type Participant with combination of Activity or Membership or Contribution or Household or Organization or Activity');
+ $errors['field_name'] = ts('Cannot add or update profile field type Participant with combination of Activity or Membership or Contribution or Household or Organization.');
}
else {
self::formRuleSubType($fieldType, $groupType, $errors);