Skip to content
Snippets Groups Projects
Commit f709690e authored by Benjamin Ulrich's avatar Benjamin Ulrich :speech_balloon:
Browse files

Merge branch 'cm_2001901_FixContentitle' into '2021.2.1'

Cm 2001901 fix contentitle

See merge request xrm/basic!1447
parents 5c4d87dd eb078eb5
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ if (db.getDatabaseType(db.getCurrentAlias()) == db.DBTYPE_DERBY10)
}
else
{
contenttitleSQL = Contacttils.getContactSalutationSubSql(true);
contenttitleSQL = ContactUtils.getContactSalutationSubSql(true);
}
result.string(contenttitleSQL);
\ No newline at end of file
......@@ -841,7 +841,7 @@ ContactUtils.getContactSalutationSubSql = function(pGetHeadline, pGetLetterSalut
}
return sqlHelper.isNull(
"(" + newSelect(SqlBuilder.caseWhen("CONTACT.PERSON_ID is null").then(orgSelect).elseValue(personSelect))
"(" + newSelect(SqlBuilder.caseWhen("CONTACT.PERSON_ID is null").then(salutationColumn).elseValue(personSelect))
.from("SALUTATION")
.where("SALUTATION.ISOLANGUAGE = CONTACT.ISOLANGUAGE")
.and(newWhere("SALUTATION.SEX = PERSON.GENDER").or("SALUTATION.SEX is null"))
......
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