From 19f7e6bd88749f7a6ab38885c878e793eeaf07a4 Mon Sep 17 00:00:00 2001 From: mikkelhm Date: Wed, 28 Dec 2016 14:07:22 +0100 Subject: [PATCH] When Querying we need to use the Alias to search for, in stead of the name, this is due to names like "Created Date" and "Last Updated Date", who has aliases like "CreateDate", and "UpdateDate" --- src/Umbraco.Web/Models/TemplateQuery/QueryCondition.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Web/Models/TemplateQuery/QueryCondition.cs b/src/Umbraco.Web/Models/TemplateQuery/QueryCondition.cs index 284518bf1e..8642a65a2e 100644 --- a/src/Umbraco.Web/Models/TemplateQuery/QueryCondition.cs +++ b/src/Umbraco.Web/Models/TemplateQuery/QueryCondition.cs @@ -13,7 +13,7 @@ { private static string MakeBinaryOperation(this QueryCondition condition, string operand, int token) { - return string.Format("{0}{1}@{2}", condition.Property.Name, operand, token); + return string.Format("{0}{1}@{2}", condition.Property.Alias, operand, token); }