Skip to content
Snippets Groups Projects
Commit 9f42ffaa authored by Sebastian Listl's avatar Sebastian Listl :speech_balloon:
Browse files

Merge branch '1081447_fixEmployeeRoleEdit' into '2021.1'

[Projekt: Entwicklung - Neon][TicketNr.: 1081447][Mitarbeiterrolle bearbeiten funktioniert, erzeugt aber Fehler an der Oberfläche]

See merge request xrm/basic!992
parents 16870b3a 4d87213f
No related branches found
No related tags found
No related merge requests found
......@@ -31,7 +31,18 @@ if (userTitle && tools.existUsers(userTitle))
}
var idvalues = vars.get("$local.idvalues");
if (!Utils.isNullOrEmpty(idvalues))
var selectedRole = vars.get("$field.ROLE");
// if idvalues and selectedRole are filled -> insert, update or delete happened
// if idvalues and selectedRole are filled and distinct -> edit (role in idvalues got changed to role in selectedRole)
if (!Utils.isNullOrEmpty(idvalues) && !Utils.isNullOrEmpty(selectedRole) && idvalues != selectedRole)
{
roles = roles.filter(function(role)
{
return selectedRole.includes(role[0]);
});
}
else if (!Utils.isNullOrEmpty(idvalues))
{
roles = roles.filter(function(role)
{
......
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