Fixes: U4-6770 When creating editorstyles: No stylesheet property found with name when creating headingstyles with capitals

This commit is contained in:
Shannon
2015-07-23 13:18:53 +02:00
parent f3d9b4a9f3
commit cd578b7b19
3 changed files with 29 additions and 8 deletions

View File

@@ -45,7 +45,7 @@ namespace umbraco.cms.presentation.settings.stylesheet
var propName = IsPostBack ? OriginalName.Value : Request.QueryString["prop"];
_stylesheetproperty = _sheet.Properties.FirstOrDefault(x => x.Name == propName);
_stylesheetproperty = _sheet.Properties.FirstOrDefault(x => x.Name.InvariantEquals(propName));
if (_stylesheetproperty == null) throw new InvalidOperationException("No stylesheet property found with name: " + Request.QueryString["prop"]);
Panel1.Text = ui.Text("stylesheet", "editstylesheetproperty", UmbracoUser);