Some updates to the translation experience to the home page setting and slug less likely to be clobbered*

* bit of a small hack, the content localization experience should be revisited before spending much time on fixing this fix

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-07-24 01:03:56 -07:00
parent ec4a444537
commit c6fc71e89d
3 changed files with 36 additions and 5 deletions

View File

@@ -76,7 +76,7 @@ namespace Orchard.Core.Routable.Drivers {
}
var location = part.GetLocation("Editor");
model.PromoteToHomePage = model.Id != 0 && _routableHomePageProvider != null && CurrentSite.HomePage == _routableHomePageProvider.GetSettingValue(model.Id);
model.PromoteToHomePage = model.Id != 0 && part.Path != null && _routableHomePageProvider != null && CurrentSite.HomePage == _routableHomePageProvider.GetSettingValue(model.Id);
return ContentPartTemplate(model, TemplateName, Prefix).Location(location);
}