Add check for null for user for hub rejection. #804
This commit is contained in:
parent
cec648f894
commit
8c886c4dbf
1 changed files with 5 additions and 1 deletions
|
|
@ -236,6 +236,10 @@ class ReportController extends Controller
|
||||||
|
|
||||||
$reason = $jor->getReason();
|
$reason = $jor->getReason();
|
||||||
|
|
||||||
|
$dispatched_by = 'system';
|
||||||
|
if ($jor->getUser() != null)
|
||||||
|
$dispatched_by = $jor->getUser()->getFullName();
|
||||||
|
|
||||||
$res[] = [
|
$res[] = [
|
||||||
$jo->getID(),
|
$jo->getID(),
|
||||||
$jo->getDateSchedule()->format('m/d/Y H:i'),
|
$jo->getDateSchedule()->format('m/d/Y H:i'),
|
||||||
|
|
@ -244,7 +248,7 @@ class ReportController extends Controller
|
||||||
JORejectionReason::getName($jor->getReason()),
|
JORejectionReason::getName($jor->getReason()),
|
||||||
$jor->getContactPerson(),
|
$jor->getContactPerson(),
|
||||||
$jor->getRemarks(),
|
$jor->getRemarks(),
|
||||||
$jor->getUser()->getFullName(),
|
$dispatched_by,
|
||||||
ServiceType::getName($jo->getServiceType()),
|
ServiceType::getName($jo->getServiceType()),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue