Add a "No specific version" choice for bugs

This commit is contained in:
Michael 2017-04-16 21:07:46 -04:00
parent 33ec913e71
commit ef1360b873

View file

@ -127,6 +127,11 @@ public List<SelectListItem> Versions
{ {
var db = new ApplicationDbContext(); var db = new ApplicationDbContext();
var items = new List<SelectListItem>(); var items = new List<SelectListItem>();
items.Add(new SelectListItem
{
Text = "No specific version",
Value = "none"
});
foreach(var itm in db.Downloads.Where(x=>x.Obsolete == false).OrderByDescending(x => x.PostDate)) foreach(var itm in db.Downloads.Where(x=>x.Obsolete == false).OrderByDescending(x => x.PostDate))
{ {
items.Add(new SelectListItem items.Add(new SelectListItem