mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#20655: SettingsRecipeHandler now bypasses attribute that is not a property
WorkItem: 20655
This commit is contained in:
@@ -74,7 +74,7 @@ namespace Orchard.Recipes.RecipeHandlers {
|
||||
|
||||
var property = sitePart.GetType().GetProperty(attributeName);
|
||||
if (property == null) {
|
||||
throw new InvalidOperationException(string.Format("Could set setting {0} for part {1} because it was not found.", attributeName, sitePart.PartDefinition.Name));
|
||||
return;
|
||||
}
|
||||
|
||||
var propertyType = property.PropertyType;
|
||||
|
||||
Reference in New Issue
Block a user