Renaming view variable to image_id to avoid collision with the field id (see #43)

This commit is contained in:
Gregwar
2013-01-04 08:31:59 +01:00
parent 35405aca2e
commit 435cc44f91
2 changed files with 5 additions and 5 deletions

View File

@ -93,7 +93,7 @@ class CaptchaType extends AbstractType
'captcha_width' => $options['width'],
'captcha_height' => $options['height'],
'reload' => $options['reload'],
'id' => uniqid('captcha_'),
'image_id' => uniqid('captcha_'),
'captcha_code' => $this->generator->getCaptchaCode($this->key, $options),
'value' => '',
'is_human' => $isHuman