Make Landmark field in JO required. #447
This commit is contained in:
parent
4003ddb489
commit
18dd63ac16
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
// have a status that needs to be retained
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue