mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 10:54:50 +08:00
Minor correction to previous contribution, CTD's are listed by DisplayName instead of Name.
This commit is contained in:
@@ -38,7 +38,7 @@ namespace Orchard.ContentTypes.Services {
|
||||
public Localizer T { get; set; }
|
||||
|
||||
public IEnumerable<EditTypeViewModel> GetTypes() {
|
||||
return _contentDefinitionManager.ListTypeDefinitions().Select(ctd => new EditTypeViewModel(ctd)).OrderBy(m=>m.Name);
|
||||
return _contentDefinitionManager.ListTypeDefinitions().Select(ctd => new EditTypeViewModel(ctd)).OrderBy(m => m.DisplayName);
|
||||
}
|
||||
|
||||
public EditTypeViewModel GetType(string name) {
|
||||
|
Reference in New Issue
Block a user