From fed0b655f567b01c633714d67eb81f40e2dcabed Mon Sep 17 00:00:00 2001 From: Ramon Gutierrez Date: Mon, 24 Apr 2023 15:11:09 +0800 Subject: [PATCH] Make landmark field optional for now #730 --- .../JobOrderHandler/ResqJobOrderHandler.php | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/src/Service/JobOrderHandler/ResqJobOrderHandler.php b/src/Service/JobOrderHandler/ResqJobOrderHandler.php index 5f88b057..052e98e7 100644 --- a/src/Service/JobOrderHandler/ResqJobOrderHandler.php +++ b/src/Service/JobOrderHandler/ResqJobOrderHandler.php @@ -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');