mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +08:00
- Fixing an issue with the homepage module to ensure we don't drop parts of the viewdata that might be used in some situations...
--HG-- branch : dev
This commit is contained in:
@@ -39,7 +39,8 @@ namespace Orchard.Core.HomePage.Controllers {
|
||||
ActionResult result = provider.GetHomePage(item);
|
||||
if (result is ViewResultBase) {
|
||||
ViewResultBase resultBase = result as ViewResultBase;
|
||||
ViewData = resultBase.ViewData;
|
||||
ViewData.Model = resultBase.ViewData.Model;
|
||||
resultBase.ViewData = ViewData;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
Reference in New Issue
Block a user