// Need to check if its a smart group or not
// Then decide which table to join onto the query
- $group = CRM_Contact_DAO_Group::getTableName();
+ $group = CRM_Contact_DAO_Group::getTableName();
// Get the group information
$sql = "
}
$field = self::getFieldObject($fieldId);
-
+
// Custom field HTML should indicate group+field name
$groupName = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomGroup', $field->custom_group_id);
$dataCrmCustomVal = $groupName.':'.$field->name;
$dataCrmCustomAttr = 'data-crm-custom="'.$dataCrmCustomVal.'"';
$field->attributes .= $dataCrmCustomAttr;
-
+
// Fixed for Issue CRM-2183
if ($field->html_type == 'TextArea' && $search) {
$field->html_type = 'Text';
'timeFormat' => $field->time_format,
'startOffset' => $field->start_date_years,
'endOffset' => $field->end_date_years,
- 'data-crm-custom' => $dataCrmCustomVal,
+ 'data-crm-custom' => $dataCrmCustomVal,
));
}
break;
'size' => 5,
'style' => '',
'class' => 'advmultiselect',
- 'data-crm-custom' => $dataCrmCustomVal,
+ 'data-crm-custom' => $dataCrmCustomVal,
)
);
if (is_array($customFieldExtend)) {
$customFieldExtend = $customFieldExtend[0];
}
-
+
if (in_array($customFieldExtend,
CRM_Contact_BAO_ContactType::subTypes()
)) {
static public function &getEnabledComponents($force = FALSE) {
return self::_info($force);
}
-
+
static public function flushEnabledComponents() {
- self::getEnabledComponents(TRUE);
+ self::getEnabledComponents(TRUE);
}
public static function &getNames($translated = FALSE) {