mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-23 01:32:16 +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 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
|
||||||
|
|
Loading…
Reference in a new issue