mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#17532: Repopulating setup model in case of exception.
--HG-- branch : 1.x
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user