#17532: Repopulating setup model in case of exception.

--HG--
branch : 1.x
This commit is contained in:
Andre Rodrigues
2011-03-29 16:00:45 -07:00
parent 38fd85900a
commit 3823c1e52f

View File

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