mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Use Display Name to show validation messages
This commit is contained in:
@@ -65,7 +65,7 @@ namespace Orchard.MediaLibrary.Drivers {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (settings.Required && field.Ids.Length == 0) {
|
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);
|
return Editor(part, field, shapeHelper);
|
||||||
@@ -99,4 +99,4 @@ namespace Orchard.MediaLibrary.Drivers {
|
|||||||
.Member(null, typeof(string), T("Ids"), T("A formatted list of the ids, e.g., {1},{42}"));
|
.Member(null, typeof(string), T("Ids"), T("A formatted list of the ids, e.g., {1},{42}"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user