'skipDisplay' => 0,
'data_type' => CRM_Utils_Type::getDataTypeFromFieldMetadata($fieldMetaData),
'bao' => $fieldMetaData['bao'] ?? NULL,
+ 'html_type' => $fieldMetaData['html']['type'] ?? NULL,
];
$formattedField = CRM_Utils_Date::addDateMetadataToField($fieldMetaData, $formattedField);
$selectAttributes = ['class' => 'crm-select2', 'placeholder' => TRUE];
if ($fieldName == 'image_URL' && $mode == CRM_Profile_Form::MODE_EDIT) {
- $deleteExtra = json_encode(ts('Are you sure you want to delete contact image.'));
+ $deleteExtra = json_encode(ts('Are you sure you want to delete the contact image?'));
$deleteURL = [
CRM_Core_Action::DELETE => [
'name' => ts('Delete Contact Image'),
*
* @return array
*/
- public function checkFieldsEmptyValues($gid, $cid, $params, $skipCheck = FALSE) {
+ public static function checkFieldsEmptyValues($gid, $cid, $params, $skipCheck = FALSE) {
if ($gid) {
if (CRM_Core_BAO_UFGroup::filterUFGroups($gid, $cid) || $skipCheck) {
$values = [];