Found a bug in Mediachase.Commerce 13.28.0
Guid? IOrderGroup.Organization { get { if (string.IsNullOrEmpty(OwnerOrg)) { return null; } if (Guid.TryParse(OwnerOrg, out var result)) { return result; } return null; } set { if (value.HasValue) { OwnerOrg = value.ToString(); } OwnerOrg = null; } }
The setter is always setting OwnerOrg to null.
Workaround:
Use OwnerOrg field (string) instead.
It took me a second try to see where the bug is. I'll file a bug for the COmmerce team. Thanks for bringing this into our attention
Found a bug in Mediachase.Commerce 13.28.0
Guid? IOrderGroup.Organization
{
get
{
if (string.IsNullOrEmpty(OwnerOrg))
{
return null;
}
if (Guid.TryParse(OwnerOrg, out var result))
{
return result;
}
return null;
}
set
{
if (value.HasValue)
{
OwnerOrg = value.ToString();
}
OwnerOrg = null;
}
}
The setter is always setting OwnerOrg to null.
Workaround:
Use OwnerOrg field (string) instead.