case 4494

This commit is contained in:
2023-03-22 00:02:46 +00:00
parent 749dbdff66
commit d615c1d7b0
5 changed files with 21 additions and 5 deletions

View File

@@ -155,7 +155,7 @@ namespace AyaNova.Biz
if (newObject.GenCopyAttachmentsFrom != null && !newObject.GenCopyAttachmentsFrom.IsEmpty)
{
//copy attachment from existing object
await AttachmentBiz.DuplicateAttachments(newObject.GenCopyAttachmentsFrom, new AyaTypeId(AyaType.Quote, newObject.Id), ct);
await AttachmentBiz.DuplicateAttachments(newObject.GenCopyAttachmentsFrom, new AyaTypeId(AyaType.Quote, newObject.Id), this.UserId, ct);
newObject.GenCopyAttachmentsFrom = null;//so it doesn't get returned
}
await QuoteHandlePotentialNotificationEvent(AyaEvent.Created, newObject);