Skip to content

Commit fd2f559

Browse files
authored
fix : Tourney Control modOptions #2992 (#2993)
1 parent 96309a1 commit fd2f559

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

Zero-K.info/Controllers/TourneyController.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
using System;
22
using System.Collections.Generic;
3+
using System.ComponentModel.DataAnnotations;
34
using System.Linq;
45
using System.Web;
56
using System.Web.Mvc;
@@ -17,7 +18,9 @@ public class TourneyModel
1718
public List<int> Team1Ids { get; set; } = new List<int>();
1819
public List<int> Team2Ids { get; set; } = new List<int>();
1920
public string Title { get; set; }
20-
public string ModoptString { get; set; }
21+
22+
[DisplayFormat(ConvertEmptyStringToNull = false)]
23+
public string ModoptString { get; set; } = "";
2124
}
2225

2326
// GET: Tourney

0 commit comments

Comments
 (0)