Fixes #U4-10383 Feature request - Ignore casing when getting member email and username from IPublishedContent

This commit is contained in:
Sebastiaan Janssen
2018-09-06 11:06:12 +02:00
parent 5dd04d9a3e
commit 5986899b5e

View File

@@ -129,11 +129,11 @@ namespace Umbraco.Web.PublishedCache
public override IPublishedProperty GetProperty(string alias)
{
switch (alias)
switch (alias.ToLowerInvariant())
{
case "Email":
case "email":
return new PropertyResult("Email", Email, PropertyResultType.CustomProperty);
case "UserName":
case "username":
return new PropertyResult("UserName", UserName, PropertyResultType.CustomProperty);
}