Modify aygetname postgres function to handle translation of items that do not have a name, also code to back it at server

This commit is contained in:
2021-11-10 01:02:09 +00:00
parent cd6ee9890f
commit 92f06ec12f
23 changed files with 229 additions and 97 deletions

View File

@@ -495,7 +495,7 @@ namespace AyaNova.Biz
var subs = await ct.NotifySubscription.Where(z => z.EventType == NotifyEventType.CSRAccepted).ToListAsync();
string SourceName = string.Empty;
if (subs.Count > 0)
SourceName = BizObjectNameFetcherDirect.Name(BizType, o.Id, ct);
SourceName = BizObjectNameFetcherDirect.Name(BizType, o.Id, UserTranslationId, ct);
foreach (var sub in subs)
{
//not for inactive users
@@ -522,7 +522,7 @@ namespace AyaNova.Biz
var subs = await ct.NotifySubscription.Where(z => z.EventType == NotifyEventType.CSRRejected).ToListAsync();
string SourceName = string.Empty;
if (subs.Count > 0)
SourceName = BizObjectNameFetcherDirect.Name(BizType, o.Id, ct);
SourceName = BizObjectNameFetcherDirect.Name(BizType, o.Id, UserTranslationId, ct);
foreach (var sub in subs)
{
//not for inactive users