mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
#17666: having 1 (or more) content types containing ContainerPart but not RoutePart brings down entire ContainablePart
- Containable does not rely on RoutePart to get the title, it just uses metadata. - Better display when a container is not routable. --HG-- branch : 1.x
This commit is contained in:
@@ -50,7 +50,7 @@ namespace Orchard.Core.Containers.Drivers {
|
||||
var listItems = new[] { new SelectListItem { Text = T("(None)").Text, Value = "0" } }
|
||||
.Concat(containers.Select(x => new SelectListItem {
|
||||
Value = Convert.ToString(x.Id),
|
||||
Text = x.ContentItem.TypeDefinition.DisplayName + ": " + x.As<IRoutableAspect>().Title,
|
||||
Text = x.ContentItem.TypeDefinition.DisplayName + ": " + _contentManager.GetItemMetadata(x.ContentItem).DisplayText,
|
||||
Selected = x.Id == model.ContainerId,
|
||||
}))
|
||||
.ToList();
|
||||
|
||||
Reference in New Issue
Block a user