Bug when setting Organization in abstract OrderGroup class

Vote:
 

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.

#248341
Feb 08, 2021 13:50
Vote:
 

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

#248345
Feb 08, 2021 15:35
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.