mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 11:44:58 +08:00
[Fixes #5969] Listing unlistable types in Contents/List
This commit is contained in:
@@ -90,7 +90,10 @@ namespace Orchard.Core.Contents.Controllers {
|
|||||||
model.TypeDisplayName = !string.IsNullOrWhiteSpace(contentTypeDefinition.DisplayName)
|
model.TypeDisplayName = !string.IsNullOrWhiteSpace(contentTypeDefinition.DisplayName)
|
||||||
? contentTypeDefinition.DisplayName
|
? contentTypeDefinition.DisplayName
|
||||||
: contentTypeDefinition.Name;
|
: contentTypeDefinition.Name;
|
||||||
query = query.ForType(model.TypeName);
|
|
||||||
|
// We display a specific type even if it's not listable so that admin pages
|
||||||
|
// can reuse the Content list page for specific types.
|
||||||
|
query = _contentManager.Query(versionOptions, model.TypeName);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (model.Options.OrderBy) {
|
switch (model.Options.OrderBy) {
|
||||||
|
Reference in New Issue
Block a user