From f236afe302c28590c34d2a9ca1374e434e81a1cd Mon Sep 17 00:00:00 2001 From: Sipke Schoorstra Date: Thu, 26 Feb 2015 16:07:11 +0100 Subject: [PATCH] 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. --- .../Orchard.Recipes/RecipeHandlers/SettingsRecipeHandler.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Orchard.Web/Modules/Orchard.Recipes/RecipeHandlers/SettingsRecipeHandler.cs b/src/Orchard.Web/Modules/Orchard.Recipes/RecipeHandlers/SettingsRecipeHandler.cs index 4e088b704..f80521602 100644 --- a/src/Orchard.Web/Modules/Orchard.Recipes/RecipeHandlers/SettingsRecipeHandler.cs +++ b/src/Orchard.Web/Modules/Orchard.Recipes/RecipeHandlers/SettingsRecipeHandler.cs @@ -74,7 +74,7 @@ namespace Orchard.Recipes.RecipeHandlers { var property = sitePart.GetType().GetProperty(attributeName); if (property == null) { - return; + continue; } var propertyType = property.PropertyType;