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

Merge branch '2021.0_1076051_sideeffect_salesprojectmember' into '2021.0'

[Projekt: xRM-Sales][TicketNr.: 1076051][Seiteneffekt zwischen Berechtigungen...

See merge request xrm/basic!774
parents 486f93b6 ac08288f
No related branches found
No related tags found
No related merge requests found
......@@ -106,9 +106,16 @@ if (Utils.isNullOrEmpty(idValues) || memberRows.length === 0)
.entity("Person_entity")
.uids(responsibleUids)
.fields(["ORGANISATION_ID", "ORGANISATION_NAME", "CONTACTROLE", "POSITION",
"FIRSTNAME", "LASTNAME", "SALUTATION", "TITLE"]);
var persRows = entities.getRows(loadingConfPers);
"FIRSTNAME", "LASTNAME", "SALUTATION", "TITLE", "PERSONID", "CONTACTID"]);
var persRowsMap = {};
entities.getRows(loadingConfPers).forEach(function(item) {
persRowsMap[item["CONTACTID"]] = item;
});
var persRows = [];
responsibleUids.forEach(function(uid) {
persRows.push(persRowsMap[uid]);
});
persRows = persRows.map(function(row){
return [row["SALUTATION"], row["TITLE"], row["FIRSTNAME"], row["LASTNAME"],
......
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