Redirecting to the widget management page with the correct layer context after creating a layer.

work item: 17591

--HG--
branch : 1.x
This commit is contained in:
Nathan Heskew
2011-03-30 14:28:46 -07:00
parent 36b5c4172e
commit 7a630fc480

View File

@@ -237,7 +237,7 @@ namespace Orchard.Widgets.Controllers {
}
Services.Notifier.Information(T("Your {0} has been created.", layerPart.TypeDefinition.DisplayName));
return RedirectToAction("Index", "Admin", new { id = layerPart.Id });
return RedirectToAction("Index", "Admin", new { layerId = layerPart.Id });
} catch (Exception exception) {
this.Error(exception, T("Creating layer failed: {0}", exception.Message), Logger, Services.Notifier);
return RedirectToAction("Index");