set entered values for Seminary fields for Character registration

This commit is contained in:
coderkun 2014-04-24 03:55:12 +02:00
commit 5088eb0640
2 changed files with 5 additions and 4 deletions

View file

@ -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']));