ZF-4984: Cant set a label to Zend_Dojo_Form_Element_SubmitButton
Description
I can't seem to set a label within a Zend_Dojo_Form_Element_SubmitButton object in ZF 1.7.0. If I use the same code with 1.6.0 everything works. Also tested this with Mathew Weier O'Phinney pastebin project. Labels show up null.
Methods tried:
$submit = new Zend_Dojo_Form_Element_SubmitButton('submit'); $submit->setLabel("Submit!") ->setRequired(false) ->setIgnore(true);
$this->addElement('SubmitButton', 'submit', array( 'required' => false, 'ignore' => true, 'label' => 'Submit!', ));
Comments
Posted by Matthew Weier O'Phinney (matthew) on 2008-11-18T17:17:22.000+0000
This is fixed in trunk and the 1.7 release branch, and will be released with 1.7.1.