set entered values for Seminary fields for Character registration
This commit is contained in:
parent
ea1c3ec7b3
commit
5088eb0640
2 changed files with 5 additions and 4 deletions
|
|
@ -199,7 +199,7 @@
|
|||
}
|
||||
}
|
||||
if(is_null($typeIndex)) {
|
||||
throw new \nre\exceptions\ParamsNotValidException($characterType);
|
||||
throw new \nre\exceptions\ParamsNotValidException($typeIndex);
|
||||
}
|
||||
|
||||
// Validate fields
|
||||
|
|
@ -209,6 +209,7 @@
|
|||
if(!array_key_exists($field['url'], $fieldsValues)) {
|
||||
throw new \nre\exceptions\ParamsNotValidException($index);
|
||||
}
|
||||
$field['uservalue'] = $fieldsValues[$field['url']];
|
||||
if($field['required'])
|
||||
{
|
||||
$fieldValidation = $this->Validation->validate($fieldsValues[$field['url']], array('regex'=>$field['regex']));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue