mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Fixing General Settings update
--HG-- branch : dev
This commit is contained in:
@@ -64,6 +64,7 @@ namespace Orchard.Core.Settings.Controllers {
|
|||||||
var site = _siteService.GetSiteSettings();
|
var site = _siteService.GetSiteSettings();
|
||||||
dynamic model = Services.ContentManager.UpdateEditor(site, this, groupInfoId);
|
dynamic model = Services.ContentManager.UpdateEditor(site, this, groupInfoId);
|
||||||
|
|
||||||
|
if (!string.IsNullOrWhiteSpace(groupInfoId)) {
|
||||||
if (model == null) {
|
if (model == null) {
|
||||||
Services.TransactionManager.Cancel();
|
Services.TransactionManager.Cancel();
|
||||||
return HttpNotFound();
|
return HttpNotFound();
|
||||||
@@ -82,6 +83,10 @@ namespace Orchard.Core.Settings.Controllers {
|
|||||||
// Casting to avoid invalid (under medium trust) reflection over the protected View method and force a static invocation.
|
// Casting to avoid invalid (under medium trust) reflection over the protected View method and force a static invocation.
|
||||||
return View((object) model);
|
return View((object) model);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
return View((object)model);
|
||||||
|
}
|
||||||
|
|
||||||
Services.Notifier.Information(T("Settings updated"));
|
Services.Notifier.Information(T("Settings updated"));
|
||||||
return RedirectToAction("Index");
|
return RedirectToAction("Index");
|
||||||
|
|||||||
Reference in New Issue
Block a user