Make required the initial concern and notes on initial concern fields. #745

This commit is contained in:
Korina Cordero 2023-06-16 02:09:35 -04:00
parent da03f13f75
commit f9800d8da3

View file

@ -446,9 +446,13 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
// get initial concern if any // get initial concern if any
$initial_concern = $req->request->get('initial_concern', ''); $initial_concern = $req->request->get('initial_concern', '');
if (empty($initial_concern))
$error_array['initial_concern'] = 'Initial concern of customer is required.';
// 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', '');
if (empty($initial_concern_notes))
$error_array['initial_concern_notes'] = 'Notes on initial concern of customer is required.';
// get gender if any // get gender if any
$gender = $req->request->get('gender', ''); $gender = $req->request->get('gender', '');
@ -707,9 +711,13 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
// get initial concern if any // get initial concern if any
$initial_concern = $req->request->get('initial_concern', ''); $initial_concern = $req->request->get('initial_concern', '');
if (empty($initial_concern))
$error_array['initial_concern'] = 'Initial concern of customer is required.';
// 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', '');
if (empty($initial_concern_notes))
$error_array['initial_concern_notes'] = 'Notes on initial concern of customer is required.';
// get gender if any // get gender if any
$gender = $req->request->get('gender', ''); $gender = $req->request->get('gender', '');
@ -927,9 +935,13 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
// get initial concern if any // get initial concern if any
$initial_concern = $req->request->get('initial_concern', ''); $initial_concern = $req->request->get('initial_concern', '');
if (empty($initial_concern))
$error_array['initial_concern'] = 'Initial concern of customer is required.';
// 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', '');
if (empty($initial_concern_notes))
$error_array['initial_concern_notes'] = 'Notes on initial concern of customer is required.';
// get gender if any // get gender if any
$gender = $req->request->get('gender', ''); $gender = $req->request->get('gender', '');
@ -1090,9 +1102,13 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
// get initial concern if any // get initial concern if any
$initial_concern = $req->request->get('initial_concern', ''); $initial_concern = $req->request->get('initial_concern', '');
if (empty($initial_concern))
$error_array['initial_concern'] = 'Initial concern of customer is required.';
// 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', '');
if (empty($initial_concern_notes))
$error_array['initial_concern_notes'] = 'Notes on initial concern of customer is required.';
// get gender if any // get gender if any
$gender = $req->request->get('gender', ''); $gender = $req->request->get('gender', '');
@ -1244,9 +1260,13 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
// get initial concern if any // get initial concern if any
$initial_concern = $req->request->get('initial_concern', ''); $initial_concern = $req->request->get('initial_concern', '');
if (empty($initial_concern))
$error_array['initial_concern'] = 'Initial concern of customer is required.';
// 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', '');
if (empty($initial_concern_notes))
$error_array['initial_concern_notes'] = 'Notes on initial concern of customer is required.';
// get gender if any // get gender if any
$gender = $req->request->get('gender', ''); $gender = $req->request->get('gender', '');
@ -1512,9 +1532,13 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
// get initial concern if any // get initial concern if any
$initial_concern = $req->request->get('initial_concern', ''); $initial_concern = $req->request->get('initial_concern', '');
if (empty($initial_concern))
$error_array['initial_concern'] = 'Initial concern of customer is required.';
// 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', '');
if (empty($initial_concern_notes))
$error_array['initial_concern_notes'] = 'Notes on initial concern of customer is required.';
// get gender if any // get gender if any
$gender = $req->request->get('gender', ''); $gender = $req->request->get('gender', '');
@ -1808,9 +1832,13 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
// get initial concern if any // get initial concern if any
$initial_concern = $req->request->get('initial_concern', ''); $initial_concern = $req->request->get('initial_concern', '');
if (empty($initial_concern))
$error_array['initial_concern'] = 'Initial concern of customer is required.';
// 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', '');
if (empty($initial_concern_notes))
$error_array['initial_concern_notes'] = 'Notes on initial concern of customer is required.';
// get gender if any // get gender if any
$gender = $req->request->get('gender', ''); $gender = $req->request->get('gender', '');