Feature: Disco ICT Online Services - Job Publishing
When warranty jobs are submitted (via plugins) users can choose to include attachments. These attachments are submitted to Disco ICT Online Services. A secure link is then provided to the plugin so the attachments can be retrieved.
This commit is contained in:
@@ -511,7 +511,8 @@ namespace Disco.Web.Controllers
|
||||
JobId = m.JobId,
|
||||
WarrantyProviderId = m.WarrantyProviderId,
|
||||
OrganisationAddressId = m.OrganisationAddressId,
|
||||
FaultDescription = m.FaultDescription
|
||||
FaultDescription = m.FaultDescription,
|
||||
PublishAttachments = m.PublishAttachments
|
||||
};
|
||||
updatedModel.UpdateModel(Database, false);
|
||||
|
||||
@@ -572,7 +573,7 @@ namespace Disco.Web.Controllers
|
||||
case "Submit":
|
||||
try
|
||||
{
|
||||
m.Job.OnLogWarranty(Database, m.FaultDescription, m.WarrantyProvider, m.OrganisationAddress, m.TechUser, m.ProviderProperties());
|
||||
m.Job.OnLogWarranty(Database, m.FaultDescription, m.PublishAttachments, m.WarrantyProvider, m.OrganisationAddress, m.TechUser, m.ProviderProperties());
|
||||
Database.SaveChanges();
|
||||
return RedirectToAction(MVC.Job.Show(m.JobId));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user