Merge pull request #745 from KevinJump/dev-v7-PackageMacros
Package Service - Case Insensitive Macro parameters
This commit is contained in:
@@ -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++;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user