case 3826
This commit is contained in:
@@ -4246,7 +4246,20 @@ namespace GZTW.AyaNova.BLL
|
||||
|
||||
Memo mwarn = Memo.NewItem();
|
||||
mwarn.ToID = User.AdministratorID;
|
||||
mwarn.FromID = User.CurrentThreadUserID;
|
||||
|
||||
//case 3826
|
||||
if (User.CurrentUserType == UserTypes.Utility)
|
||||
{
|
||||
//Utility accounts should not be sending memos, it fucks up downstream
|
||||
//trying to view the memo, also it's confusing
|
||||
mwarn.FromID = User.AdministratorID;
|
||||
}
|
||||
else
|
||||
{
|
||||
mwarn.FromID = User.CurrentThreadUserID;
|
||||
}
|
||||
|
||||
|
||||
mwarn.Subject = "SYSTEM WARNING: Preventive Maintenance WO PROBLEM";
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.AppendLine("This is an automated message sent on behalf of the current user from the \"NewServiceWorkorderFromPM\" module.");
|
||||
|
||||
Reference in New Issue
Block a user