From 7e8e437e99c417ed290726d57337626f708b7f1c Mon Sep 17 00:00:00 2001 From: Az Date: Sun, 1 Sep 2024 19:15:32 +0100 Subject: [PATCH] fix : Tourney Control modOptions ZeroK-RTS#2992 --- Zero-K.info/Controllers/TourneyController.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Zero-K.info/Controllers/TourneyController.cs b/Zero-K.info/Controllers/TourneyController.cs index 2fbe8dd09..5660dbc59 100644 --- a/Zero-K.info/Controllers/TourneyController.cs +++ b/Zero-K.info/Controllers/TourneyController.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; using System.Linq; using System.Web; using System.Web.Mvc; @@ -17,7 +18,9 @@ public class TourneyModel public List Team1Ids { get; set; } = new List(); public List Team2Ids { get; set; } = new List(); public string Title { get; set; } - public string ModoptString { get; set; } + + [DisplayFormat(ConvertEmptyStringToNull = false)] + public string ModoptString { get; set; } = ""; } // GET: Tourney