Skip to content
Snippets Groups Projects
Commit 0cf38ff9 authored by Prasad's avatar Prasad
Browse files

Fixes #1879: Reference label column with multiple fields corrected

parent 4f746b8a
No related branches found
No related tags found
No related merge requests found
...@@ -762,7 +762,13 @@ class QueryGenerator { ...@@ -762,7 +762,13 @@ class QueryGenerator {
$columnList[] = "$referenceTable.$column"; $columnList[] = "$referenceTable.$column";
} }
if(php7_count($columnList) > 1) { if(php7_count($columnList) > 1) {
$columnSql = getSqlForNameInDisplayFormat(array('first_name'=>$columnList[0],'last_name'=>$columnList[1]),'Users'); if ($module == "Users") {
// Special case
$columnSql = getSqlForNameInDisplayFormat(array('first_name'=>$columnList[0],'last_name'=>$columnList[1]),'Users');
} else {
// Leads or contacts
$columnSql = getSqlForNameInDisplayFormat(array('firstname'=>$columnList[0],'lastname'=>$columnList[1]), $module);
}
} else { } else {
$columnSql = implode('', $columnList); $columnSql = implode('', $columnList);
} }
......
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