From 3823c1e52fc794eec8c0f33b2ca197f07c439cdf Mon Sep 17 00:00:00 2001 From: Andre Rodrigues Date: Tue, 29 Mar 2011 16:00:45 -0700 Subject: [PATCH] #17532: Repopulating setup model in case of exception. --HG-- branch : 1.x --- .../Modules/Orchard.Setup/Controllers/SetupController.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Orchard.Web/Modules/Orchard.Setup/Controllers/SetupController.cs b/src/Orchard.Web/Modules/Orchard.Setup/Controllers/SetupController.cs index 33f82a2f2..f614fcdc8 100644 --- a/src/Orchard.Web/Modules/Orchard.Setup/Controllers/SetupController.cs +++ b/src/Orchard.Web/Modules/Orchard.Setup/Controllers/SetupController.cs @@ -127,6 +127,12 @@ namespace Orchard.Setup.Controllers { } catch (Exception exception) { this.Error(exception, T("Setup failed:"), Logger, _notifier); + model.Recipes = recipes; + foreach (var recipe in recipes.Where(recipe => recipe.Name == model.Recipe)) { + model.RecipeDescription = recipe.Description; + } + model.DatabaseIsPreconfigured = !string.IsNullOrEmpty(_setupService.Prime().DataProvider); + return IndexViewResult(model); } }