Make landmark field optional for now #730

This commit is contained in:
Ramon Gutierrez 2023-04-24 15:11:09 +08:00
parent 68fe13de46
commit fed0b655f5

View file

@ -394,8 +394,8 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
}
// check if landmark is set
if (empty($req->request->get('landmark')))
$error_array['landmark'] = 'Landmark is required.';
//if (empty($req->request->get('landmark')))
// $error_array['landmark'] = 'Landmark is required.';
// check if customer is not willing to wait
$will_wait = $req->request->get('flag_willing_to_wait');
@ -654,8 +654,8 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
}
// check if landmark is set
if (empty($req->request->get('landmark')))
$error_array['landmark'] = 'Landmark is required.';
//if (empty($req->request->get('landmark')))
// $error_array['landmark'] = 'Landmark is required.';
// check if customer is not willing to wait
$will_wait = $req->request->get('flag_willing_to_wait');
@ -876,8 +876,8 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
}
// check if landmark is set
if (empty($req->request->get('landmark')))
$error_array['landmark'] = 'Landmark is required.';
//if (empty($req->request->get('landmark')))
// $error_array['landmark'] = 'Landmark is required.';
// check if customer is not willing to wait
$will_wait = $req->request->get('flag_willing_to_wait');
@ -1025,8 +1025,8 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
}
// check if landmark is set
if (empty($req->request->get('landmark')))
$error_array['landmark'] = 'Landmark is required.';
//if (empty($req->request->get('landmark')))
// $error_array['landmark'] = 'Landmark is required.';
// check if customer is not willing to wait
$will_wait = $req->request->get('flag_willing_to_wait');
@ -1165,8 +1165,8 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
}
// check if landmark is set
if (empty($req->request->get('landmark')))
$error_array['landmark'] = 'Landmark is required.';
//if (empty($req->request->get('landmark')))
// $error_array['landmark'] = 'Landmark is required.';
// check if customer is not willing to wait
$will_wait = $req->request->get('flag_willing_to_wait');
@ -1417,8 +1417,8 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
}
// check if landmark is set
if (empty($req->request->get('landmark')))
$error_array['landmark'] = 'Landmark is required.';
//if (empty($req->request->get('landmark')))
// $error_array['landmark'] = 'Landmark is required.';
// error_log($req->request->get('landmark'));
@ -1699,8 +1699,8 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
}
// check if landmark is set
if (empty($req->request->get('landmark')))
$error_array['landmark'] = 'Landmark is required.';
//if (empty($req->request->get('landmark')))
// $error_array['landmark'] = 'Landmark is required.';
// check if customer is not willing to wait
$will_wait = $req->request->get('flag_willing_to_wait');