Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

Commit

Permalink
fix #3144
Browse files Browse the repository at this point in the history
  • Loading branch information
etienn3 committed Dec 3, 2012
1 parent 421a544 commit 283b636
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions library/Zend/Form/View/Helper/Captcha/AbstractWord.php
Expand Up @@ -118,7 +118,6 @@ protected function renderCaptchaInputs(ElementInterface $element)
));
}

$attributes = $element->getAttributes();
$captcha = $element->getCaptcha();

if ($captcha === null || !$captcha instanceof CaptchaAdapter) {
Expand All @@ -127,9 +126,14 @@ protected function renderCaptchaInputs(ElementInterface $element)
__METHOD__
));
}

$hidden = $this->renderCaptchaHidden($captcha, $attributes);
$input = $this->renderCaptchaInput($captcha, $attributes);


$inputAttributes = $element->getAttributes();
$hiddenAttributes = $inputAttributes;
unset($hiddenAttributes['id']);

$hidden = $this->renderCaptchaHidden($captcha, $hiddenAttributes);
$input = $this->renderCaptchaInput($captcha, $inputAttributes);

return $hidden . $input;
}
Expand Down

0 comments on commit 283b636

Please sign in to comment.