Explorar o código

PRS DESKTOP - create new employee from user now copies over email address if present

Nick-PRSDigital@bitbucket.org %!s(int64=3) %!d(string=hai) anos
pai
achega
e6c1b66c28
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      prs.desktop/Panels/Users/UserGrid.cs

+ 2 - 0
prs.desktop/Panels/Users/UserGrid.cs

@@ -155,6 +155,8 @@ namespace PRSDesktop
                         {
                         {
                             Name = item.Description
                             Name = item.Description
                         };
                         };
+                        if(!string.IsNullOrWhiteSpace(item.EmailAddress))
+                            newEmployee.Email = item.EmailAddress;
                         newEmployee.UserLink.ID = item.ID;
                         newEmployee.UserLink.ID = item.ID;
                         newEmployee.UserLink.Synchronise(item);
                         newEmployee.UserLink.Synchronise(item);