Add default values. #673

This commit is contained in:
Korina Cordero 2022-06-01 04:08:08 +00:00
parent 4580228628
commit 174acddc91

View file

@ -401,22 +401,22 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
} }
// get source of awareness if any // get source of awareness if any
$soa_type = $req->request->get('source_of_awareness'); $soa_type = $req->request->get('source_of_awareness', '');
// get remarks // get remarks
$remarks = $req->request->get('remarks', ''); $remarks = $req->request->get('remarks', '');
// get initial concern if any // get initial concern if any
$initial_concern = $req->request->get('initial_concern'); $initial_concern = $req->request->get('initial_concern', '');
// get initial concern notes if any // get initial concern notes if any
$initial_concern_notes = $req->request->get('initial_concern_notes', ''); $initial_concern_notes = $req->request->get('initial_concern_notes', '');
// get gender if any // get gender if any
$gender = $req->request->get('gender'); $gender = $req->request->get('gender', '');
// get caller classification if any // get caller classification if any
$caller_class = $req->request->get('caller_class'); $caller_class = $req->request->get('caller_class','');
// TODO: check status before saving since JO might already // TODO: check status before saving since JO might already
// have a status that needs to be retained // have a status that needs to be retained
@ -651,22 +651,22 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
} }
// get source of awareness if any // get source of awareness if any
$soa_type = $req->request->get('source_of_awareness'); $soa_type = $req->request->get('source_of_awareness', '');
// get remarks // get remarks
$remarks = $req->request->get('remarks', ''); $remarks = $req->request->get('remarks', '');
// get initial concern if any // get initial concern if any
$initial_concern = $req->request->get('initial_concern'); $initial_concern = $req->request->get('initial_concern', '');
// get initial concern notes if any // get initial concern notes if any
$initial_concern_notes = $req->request->get('initial_concern_notes', ''); $initial_concern_notes = $req->request->get('initial_concern_notes', '');
// get gender if any // get gender if any
$gender = $req->request->get('gender'); $gender = $req->request->get('gender', '');
// get caller classification if any // get caller classification if any
$caller_class = $req->request->get('caller_class'); $caller_class = $req->request->get('caller_class', '');
if (empty($error_array)) if (empty($error_array))
{ {
@ -847,22 +847,22 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
} }
// get source of awareness if any // get source of awareness if any
$soa_type = $req->request->get('source_of_awareness'); $soa_type = $req->request->get('source_of_awareness', '');
// get remarks // get remarks
$remarks = $req->request->get('remarks', ''); $remarks = $req->request->get('remarks', '');
// get initial concern if any // get initial concern if any
$initial_concern = $req->request->get('initial_concern'); $initial_concern = $req->request->get('initial_concern', '');
// get initial concern notes if any // get initial concern notes if any
$initial_concern_notes = $req->request->get('initial_concern_notes', ''); $initial_concern_notes = $req->request->get('initial_concern_notes', '');
// get gender if any // get gender if any
$gender = $req->request->get('gender'); $gender = $req->request->get('gender', '');
// get caller classification if any // get caller classification if any
$caller_class = $req->request->get('caller_class'); $caller_class = $req->request->get('caller_class', '');
if (empty($error_array)) if (empty($error_array))
{ {
@ -986,22 +986,22 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
} }
// get source of awareness if any // get source of awareness if any
$soa_type = $req->request->get('source_of_awareness'); $soa_type = $req->request->get('source_of_awareness', '');
// get remarks // get remarks
$remarks = $req->request->get('remarks', ''); $remarks = $req->request->get('remarks', '');
// get initial concern if any // get initial concern if any
$initial_concern = $req->request->get('initial_concern'); $initial_concern = $req->request->get('initial_concern', '');
// get initial concern notes if any // get initial concern notes if any
$initial_concern_notes = $req->request->get('initial_concern_notes', ''); $initial_concern_notes = $req->request->get('initial_concern_notes', '');
// get gender if any // get gender if any
$gender = $req->request->get('gender'); $gender = $req->request->get('gender', '');
// get caller classification if any // get caller classification if any
$caller_class = $req->request->get('caller_class'); $caller_class = $req->request->get('caller_class', '');
// get current user // get current user
$user = $this->security->getUser(); $user = $this->security->getUser();
@ -1116,22 +1116,22 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
} }
// get source of awareness if any // get source of awareness if any
$soa_type = $req->request->get('source_of_awareness'); $soa_type = $req->request->get('source_of_awareness', '');
// get remarks // get remarks
$remarks = $req->request->get('remarks', ''); $remarks = $req->request->get('remarks', '');
// get initial concern if any // get initial concern if any
$initial_concern = $req->request->get('initial_concern'); $initial_concern = $req->request->get('initial_concern', '');
// get initial concern notes if any // get initial concern notes if any
$initial_concern_notes = $req->request->get('initial_concern_notes', ''); $initial_concern_notes = $req->request->get('initial_concern_notes', '');
// get gender if any // get gender if any
$gender = $req->request->get('gender'); $gender = $req->request->get('gender', '');
// get caller classification if any // get caller classification if any
$caller_class = $req->request->get('caller_class'); $caller_class = $req->request->get('caller_class', '');
if (empty($error_array)) { if (empty($error_array)) {
// coordinates // coordinates
@ -1360,22 +1360,22 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
} }
// get source of awareness if any // get source of awareness if any
$soa_type = $req->request->get('source_of_awareness'); $soa_type = $req->request->get('source_of_awareness', '');
// get remarks // get remarks
$remarks = $req->request->get('remarks', ''); $remarks = $req->request->get('remarks', '');
// get initial concern if any // get initial concern if any
$initial_concern = $req->request->get('initial_concern'); $initial_concern = $req->request->get('initial_concern', '');
// get initial concern notes if any // get initial concern notes if any
$initial_concern_notes = $req->request->get('initial_concern_notes', ''); $initial_concern_notes = $req->request->get('initial_concern_notes', '');
// get gender if any // get gender if any
$gender = $req->request->get('gender'); $gender = $req->request->get('gender', '');
// get caller classification if any // get caller classification if any
$caller_class = $req->request->get('caller_class'); $caller_class = $req->request->get('caller_class', '');
// get previously assigned hub, if any // get previously assigned hub, if any
$old_hub = $obj->getHub(); $old_hub = $obj->getHub();
@ -1614,22 +1614,22 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
} }
// get source of awareness if any // get source of awareness if any
$soa_type = $req->request->get('source_of_awareness'); $soa_type = $req->request->get('source_of_awareness', '');
// get remarks // get remarks
$remarks = $req->request->get('remarks', ''); $remarks = $req->request->get('remarks', '');
// get initial concern if any // get initial concern if any
$initial_concern = $req->request->get('initial_concern'); $initial_concern = $req->request->get('initial_concern', '');
// get initial concern notes if any // get initial concern notes if any
$initial_concern_notes = $req->request->get('initial_concern_notes', ''); $initial_concern_notes = $req->request->get('initial_concern_notes', '');
// get gender if any // get gender if any
$gender = $req->request->get('gender'); $gender = $req->request->get('gender', '');
// get caller classification if any // get caller classification if any
$caller_class = $req->request->get('caller_class'); $caller_class = $req->request->get('caller_class', '');
if (empty($error_array)) { if (empty($error_array)) {
// rider mqtt event // rider mqtt event