mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-22 17:22:15 +00:00
Add a "No specific version" choice for bugs
This commit is contained in:
parent
33ec913e71
commit
ef1360b873
1 changed files with 5 additions and 0 deletions
|
@ -127,6 +127,11 @@ public List<SelectListItem> Versions
|
|||
{
|
||||
var db = new ApplicationDbContext();
|
||||
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))
|
||||
{
|
||||
items.Add(new SelectListItem
|
||||
|
|
Loading…
Reference in a new issue