- 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:
Suha Can
2010-02-12 17:13:38 -08:00
parent ea06440780
commit 43a3597155

View File

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