Issue Type: Bug Created: 2008-11-28T04:43:49.000+0000 Last Updated: 2011-08-14T17:04:47.000+0000 Status: Open Fix version(s): Reporter: twk (twk) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form
Related issues: Attachments:
If you set validators like the following, the size validator runs but the extension one does not. This might be because setName updates $_name but remains update _adapter -> _files array. I am not sure whether it occurs with other form elements or not.
$element = new Zend_Form_Element_File('hoge'); $element->setDestination('/tmp') ->addValidator('Size', false, 1024) ->setName('foo') ->addValidator('Extension', false, 'jpg,png,gif') ;
Posted by Diogo Piçarra (xpete) on 2011-08-08T02:07:31.000+0000
I have a problem like this and maybe it's related... When i have $form->setName("formname") the validation doesn't work... but if i remove the setName it works... i fixed some forms by removing the name but i have a form where i really need the name on it and this is blocking my project... I'am using Zend_Dojo_Form and Zend 1.11.10... thx
Have you found an issue?
See the Overview section for more details.