From c1f5d8392d952351d95a589ea86d6ff06a216bfd Mon Sep 17 00:00:00 2001 From: Kevin Jump Date: Wed, 22 Jul 2015 10:53:08 +0100 Subject: [PATCH] Package Service - Case Insensitive Macro parameters Make the check for existing alias values case Insensitive - stops the SQL error you get if you try to add the same parameter twice. --- src/Umbraco.Core/Services/PackagingService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Umbraco.Core/Services/PackagingService.cs b/src/Umbraco.Core/Services/PackagingService.cs index 5b3c8bc7c6..8ca9d3e3da 100644 --- a/src/Umbraco.Core/Services/PackagingService.cs +++ b/src/Umbraco.Core/Services/PackagingService.cs @@ -1219,7 +1219,7 @@ namespace Umbraco.Core.Services sortOrder = int.Parse(sortOrderAttribute.Value); } - if (macro.Properties.Any(x => x.Alias == propertyAlias)) continue; + if (macro.Properties.Any(x => string.Equals(x.Alias, propertyAlias, StringComparison.OrdinalIgnoreCase))) continue; macro.Properties.Add(new MacroProperty(propertyAlias, propertyName, sortOrder, editorAlias)); sortOrder++; }