[REF] minor code cleanup - move indexExist calculation to the only place in the code that needs it
'column_name'
);
}
- $columnName = $params['column_name'];
- $indexExist = FALSE;
- //as during create if field is_searchable we had created index.
- if (!empty($params['id'])) {
- $indexExist = CRM_Core_DAO::getFieldValue('CRM_Core_DAO_CustomField', $params['id'], 'is_searchable');
- }
-
switch (CRM_Utils_Array::value('html_type', $params)) {
case 'Select Date':
if (empty($params['date_format'])) {