Issue Type: Bug Created: 2009-07-24T11:44:10.000+0000 Last Updated: 2012-11-20T20:53:35.000+0000 Status: Closed Fix version(s): Reporter: Kim Blomqvist (kblomqvist) Assignee: None Tags: - Zend_Form
Related issues: Attachments:
Method isValid() in Zend_Form_Element_Captcha returns false in case of empty value although I have set it not to be required and allow empty.
Posted by Sudheer Satyanarayana (bonaparte) on 2009-07-24T11:56:06.000+0000
Isn't the expected behaviour?
Why would you want to make the CAPTCHA optional anyway?
Posted by Kim Blomqvist (kblomqvist) on 2009-07-24T12:29:59.000+0000
If I want to add it but keep it hidden when it's not yet required. (It's also set required in ZF quickstart although it doesn't seem to matter.)
Posted by Dolf Schimmel (Freeaqingme) (freak) on 2009-07-24T15:11:22.000+0000
shouldn't you use setIgnore() then?
Posted by Kim Blomqvist (kblomqvist) on 2009-07-24T16:48:02.000+0000
setIgnore() won't work either.
In my opinion captcha element is a form element like any other element, so why shouldn't the same options like required etc. do the same things in captcha. And if you have noticed, the required option is also used for captcha in the part of ZF quickstart where Zend_Form is introduced. Obviously it's meant that you can decide if captcha is required or not (meant to inherit the basic functionality of the Zend_Form_Element).
Posted by Kim Blomqvist (kblomqvist) on 2009-10-18T05:18:52.000+0000
I tried to hide captcha by using clearDecorators() for captcha element. It didn't work, because ViewHelper decorators wasn't removed.
Posted by Rob Allen (rob) on 2012-11-20T20:53:35.000+0000
Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".
Feel free to re-open and provide a patch if you want to fix this issue.
Have you found an issue?
See the Overview section for more details.