#20655: SettingsRecipeHandler now bypasses attribute that is not a property

WorkItem: 20655
This commit is contained in:
Stanley Goldman
2014-04-24 13:22:49 -04:00
parent 8ae9be76b9
commit b50ae151bd

View File

@@ -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;