diff --git a/controllers/CharactersController.inc b/controllers/CharactersController.inc index cf04da4d..70aed379 100644 --- a/controllers/CharactersController.inc +++ b/controllers/CharactersController.inc @@ -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'])); diff --git a/views/html/characters/register.tpl b/views/html/characters/register.tpl index 03dcfa9b..cc3bc005 100644 --- a/views/html/characters/register.tpl +++ b/views/html/characters/register.tpl @@ -64,15 +64,15 @@ - required="required"/> + value="" required="required"/> - +