Bug Fix #83: Correct case in attachment usernames

This commit is contained in:
Gary Sharp
2015-02-02 19:00:58 +11:00
parent a7b3f045d6
commit 23db0b6111
4 changed files with 6 additions and 6 deletions
@@ -490,7 +490,7 @@ namespace Disco.Web.Areas.API.Controllers
var da = new DeviceAttachment()
{
DeviceSerialNumber = d.SerialNumber,
TechUserId = UserService.CurrentUserId,
TechUserId = UserService.CurrentUser.UserId,
Filename = file.FileName,
MimeType = contentType,
Timestamp = DateTime.Now,
@@ -558,7 +558,7 @@ namespace Disco.Web.Areas.API.Controllers
{
var undetectedLocation = DataStore.CreateLocation(Database, "DocumentDropBox_Unassigned");
var filename = System.IO.Path.Combine(undetectedLocation, string.Concat(id, ".pdf"));
if (BI.Interop.Pdf.PdfImporter.ProcessPdfAttachment(filename, Database, DocumentTemplateId, DataId, UserService.CurrentUserId, DateTime.Now))
if (BI.Interop.Pdf.PdfImporter.ProcessPdfAttachment(filename, Database, DocumentTemplateId, DataId, UserService.CurrentUser.UserId, DateTime.Now))
{
// Delete File
System.IO.File.Delete(filename);
@@ -75,7 +75,7 @@ namespace Disco.Web.Areas.API.Controllers
var ua = new Disco.Models.Repository.UserAttachment()
{
UserId = u.UserId,
TechUserId = UserService.CurrentUserId,
TechUserId = UserService.CurrentUser.UserId,
Filename = file.FileName,
MimeType = contentType,
Timestamp = DateTime.Now,