Fix: Warranty Provider Properties & JSON.net

This commit is contained in:
Gary Sharp
2013-05-21 11:23:45 +10:00
parent c79a736e70
commit 7befaccf4a
10 changed files with 30 additions and 32 deletions
+2 -2
View File
@@ -13,6 +13,7 @@ using Disco.Services.Plugins;
using Disco.Models.UI.Job;
using Disco.Services.Plugins.Features.UIExtension;
using Disco.BI.JobBI;
using Newtonsoft.Json;
namespace Disco.Web.Controllers
{
@@ -440,8 +441,7 @@ namespace Disco.Web.Controllers
if (warrantyProviderProperties != null)
{
JavaScriptSerializer j = new JavaScriptSerializer();
m.WarrantyProviderPropertiesJson = j.Serialize(warrantyProviderProperties);
m.WarrantyProviderPropertiesJson = JsonConvert.SerializeObject(warrantyProviderProperties);
}
m.DiscloseProperties = p.SubmitJobDiscloseInfo(dbContext, m.Job, m.OrganisationAddress, m.TechUser, m.FaultDescription, warrantyProviderProperties);
return View(Views.LogWarrantyDisclose, m);