Commit 6ad32dd9 by Nilu

S13949534 # Client - Incoming Issues (raised by Client) #Save gives System Unavailable

parent 7012cc1d
......@@ -44,7 +44,7 @@ public class SaveCultureTemplateFP extends ORMProcessFormProcessor
CompanyUser companyUser = secUser.getExtension(CompanyUser.REFERENCE_CompanyUser);
newTemplate.setCompanyUser(companyUser);
newTemplate.setClient(job.getClient().getInTransaction(newObjTran));
newTemplate.setClient(job.getClient() != null ? job.getClient().getInTransaction(newObjTran) : null );
newTemplate.setHiringTeam(job.getHiringTeam().getInTransaction(newObjTran));
newTemplate.setTemplateName(job.getCultureTemplateName());
......
......@@ -49,7 +49,7 @@ public class SaveRequirementsTemplateFP extends ORMProcessFormProcessor
newTemplate.setReferenceNumber(job.getReferenceNumber());
newTemplate.setJobDescription(job.getJobDescription());
newTemplate.setJobOwner(job.getJobOwner().getInTransaction(newObjTran));
newTemplate.setClient(job.getClient().getInTransaction(newObjTran));
newTemplate.setClient(job.getClient() != null ? job.getClient().getInTransaction(newObjTran) : null);
newTemplate.setGoogleAddressText(job.getGoogleAddressText());
newTemplate.setExpectedCandidateRadius(job.getExpectedCandidateRadius());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment