Skip to content
Snippets Groups Projects
Commit 4d67b5fc authored by Akshath's avatar Akshath
Browse files

Fix for #1523 - Optimization of record label computation.

parent f99ae127
No related branches found
No related tags found
No related merge requests found
......@@ -281,9 +281,17 @@ class CRMEntity {
$entityFields = Vtiger_Functions::getEntityModuleInfo($module);
$entityFieldNames = explode(',', $entityFields['fieldname']);
$label = (count($entityFieldNames) > 1) ?
switch ($module) {
case 'HelpDesk': $entityFieldNames = array('ticket_title');
break;
case 'Documents': $entityFieldNames = array('notes_title');
break;
}
$record_label = (count($entityFieldNames) > 1) ?
$this->column_fields[$entityFieldNames[0]].' '.$this->column_fields[$entityFieldNames[1]] :
$this->column_fields[$entityFieldNames[0]];
$label = decode_html($record_label);
$this->column_fields['label'] = $label;
if ($this->mode == 'edit') {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment