Bug Fix: Bulk Generate Documents UserId Domain

Where no domain is provided, the primary domain should be assumed.
This commit is contained in:
Gary Sharp
2014-06-11 21:32:50 +10:00
parent 513397779d
commit 6186237028
+2 -2
View File
@@ -69,9 +69,9 @@ namespace Disco.BI.Interop.Pdf
if (!dataObjectId.Contains('\\'))
dataObjectId = ActiveDirectory.Context.PrimaryDomain.NetBiosName + @"\" + dataObjectId;
DataObjects[idIndex] = UserService.GetUser(DataObjectsIds[idIndex], Database, true);
DataObjects[idIndex] = UserService.GetUser(dataObjectId, Database, true);
if (DataObjects[idIndex] == null)
throw new Exception(string.Format("Unknown Username specified: {0}", DataObjectsIds[idIndex]));
throw new Exception(string.Format("Unknown Username specified: {0}", dataObjectId));
}
break;
default: