Make Landmark field in JO required. #447

This commit is contained in:
Korina Cordero 2020-07-28 08:07:56 +00:00
parent 4003ddb489
commit 18dd63ac16

View file

@ -320,6 +320,10 @@ class ResqJobOrderHandler implements JobOrderHandlerInterface
} }
} }
// check if landmark is set
if (empty($req->request->get('landmark')))
$error_array['landmark'] = 'Landmark is required.';
// 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