Use Display Name to show validation messages

This commit is contained in:
Chris Payne
2015-12-22 16:44:24 +00:00
parent da8898e946
commit 28e2e8f695

View File

@@ -65,7 +65,7 @@ namespace Orchard.MediaLibrary.Drivers {
}
if (settings.Required && field.Ids.Length == 0) {
updater.AddModelError("Id", T("The field {0} is mandatory", field.Name.CamelFriendly()));
updater.AddModelError("Id", T("The field {0} is mandatory", field.DisplayName));
}
return Editor(part, field, shapeHelper);