qol: formatting
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
using System.Collections.Generic;
|
||||
using Disco.Models.UI.Device;
|
||||
using Disco.Models.UI.Device;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Disco.Web.Models.Device
|
||||
{
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace Disco.Web.Models.InitialConfig
|
||||
|
||||
[CustomValidation(typeof(DatabaseModel), "SqlAuthRequired", ErrorMessage = "When using SQL Authentication a Username is required")]
|
||||
public string Auth_SQL_Username { get; set; }
|
||||
[DataType(DataType.Password), CustomValidation(typeof(DatabaseModel), "SqlAuthRequired", ErrorMessage="When using SQL Authentication a Password is required")]
|
||||
[DataType(DataType.Password), CustomValidation(typeof(DatabaseModel), "SqlAuthRequired", ErrorMessage = "When using SQL Authentication a Password is required")]
|
||||
public string Auth_SQL_Password { get; set; }
|
||||
|
||||
public List<SelectListItem> AuthMethods
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
using Disco.Models.ClientServices;
|
||||
using Disco.Models.Services.Jobs.Statistics;
|
||||
using Disco.Models.Services.Jobs.JobLists;
|
||||
using Disco.Models.Services.Jobs.Statistics;
|
||||
using Disco.Models.UI.Job;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ using Newtonsoft.Json;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.Linq;
|
||||
using System.Data.Entity;
|
||||
using System.Linq;
|
||||
|
||||
namespace Disco.Web.Models.Job
|
||||
{
|
||||
|
||||
@@ -82,7 +82,8 @@ namespace Disco.Web.Models.Job
|
||||
try
|
||||
{
|
||||
UserService.GetUser(jobUserId, Database, true);
|
||||
} catch (Exception) {}
|
||||
}
|
||||
catch (Exception) { }
|
||||
}
|
||||
|
||||
Job = Database.Jobs
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using Disco.Models.Services.Searching;
|
||||
using Disco.Models.Services.Jobs.JobLists;
|
||||
using Disco.Models.Services.Jobs.JobLists;
|
||||
using Disco.Models.Services.Searching;
|
||||
using Disco.Models.UI.Search;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
@@ -69,7 +69,7 @@ namespace Disco.Web.Models.Shared
|
||||
List<string> userCustomDetailKeys;
|
||||
using (var database = new DiscoDataContext())
|
||||
userCustomDetailKeys = database.UserDetails.Where(d => d.Scope == "Details").Select(d => d.Key).Distinct().OrderBy(k => k).ToList();
|
||||
|
||||
|
||||
if (userCustomDetailKeys.Any())
|
||||
{
|
||||
var fieldKey = ((MemberExpression)modelAccessor.Body).Member.Name;
|
||||
|
||||
Reference in New Issue
Block a user