mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-24 05:27:30 +01:00
Mark a hack
This commit is contained in:
@@ -120,6 +120,7 @@ namespace Tgstation.Server.Host.Controllers
|
||||
if (ModelState?.IsValid == false)
|
||||
{
|
||||
var errorMessages = ModelState.SelectMany(x => x.Value.Errors).Select(x => x.ErrorMessage).ToList();
|
||||
//HACK
|
||||
//do some fuckery to remove RequiredAttribute errors
|
||||
for (var I = 0; I < errorMessages.Count; ++I)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user