mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-04-05 21:01:35 +08:00
[Fixes #5969] Listing unlistable types in Contents/List
This commit is contained in:
parent
011d80cdb8
commit
112f13bf39
@ -90,7 +90,10 @@ namespace Orchard.Core.Contents.Controllers {
|
||||
model.TypeDisplayName = !string.IsNullOrWhiteSpace(contentTypeDefinition.DisplayName)
|
||||
? contentTypeDefinition.DisplayName
|
||||
: 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user