Fixed site settings recipe step.

This fixes an issue where the remainder of the attributes on an XML element are not being processed if a certain attribute does not exist as a property on the part.
For example, the SiteCultures attribute on the element being imported would not match to a property on the SiteSettingsPart, so the remainder of the attributes would be skipped.
This commit is contained in:
Sipke Schoorstra
2015-02-26 16:07:11 +01:00
parent d32accb089
commit f236afe302

View File

@@ -74,7 +74,7 @@ namespace Orchard.Recipes.RecipeHandlers {
var property = sitePart.GetType().GetProperty(attributeName);
if (property == null) {
return;
continue;
}
var propertyType = property.PropertyType;