mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-14 02:44:52 +08:00
Fix Work Item: 16622
--HG-- branch : 1.x
This commit is contained in:
@@ -104,7 +104,7 @@ namespace Orchard.ContentTypes.Controllers {
|
||||
|
||||
var edited = new EditTypeViewModel();
|
||||
TryUpdateModel(edited);
|
||||
typeViewModel.DisplayName = edited.DisplayName;
|
||||
typeViewModel.DisplayName = edited.DisplayName ?? string.Empty;
|
||||
|
||||
if ( String.IsNullOrWhiteSpace(typeViewModel.DisplayName) ) {
|
||||
ModelState.AddModelError("DisplayName", T("The Content Type name can't be empty.").ToString());
|
||||
|
@@ -23,7 +23,6 @@ namespace Orchard.ContentTypes.ViewModels {
|
||||
}
|
||||
|
||||
public string Name { get; set; }
|
||||
[Required]
|
||||
public string DisplayName { get; set; }
|
||||
public SettingsDictionary Settings { get; set; }
|
||||
public IEnumerable<EditPartFieldViewModel> Fields { get; set; }
|
||||
|
Reference in New Issue
Block a user