Resolve "Resq 1.5 changes" #1556

Merged
korina.cordero merged 30 commits from 632-resq-1-5-changes into master-fix 2021-12-03 05:54:22 +00:00
Showing only changes of commit 1030b1934e - Show all commits

View file

@ -3823,9 +3823,12 @@ class APIController extends Controller implements LoggedController
// get the latest job order for customer
$latest_jo = $em->getRepository(JobOrder::class)->findOneBy(['customer' => $cust], ['id' => 'DESC']);
$jo_data = [];
$jo_data = null;
if ($latest_jo != null)
{
// TODO: clean the response up to just return what is needed
$jo_data = $this->generateJobOrderData($req, $latest_jo, $rt);
}
$data = [
'latest_job_order' => $jo_data,