ZF-2717: setElementDecorators() changes display of Image Element to Text Element

Issue Type: Bug Created: 2008-02-23T17:08:38.000+0000 Last Updated: 2008-03-21T16:25:31.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: Ken Crane (kcrane377) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: Attachments:


When using decorators a Image Element is rendered as a Text Element

<pre class="highlight">
$image = new Zend_Form_Element_Image('submitImage');
    ->setAttrib('class', 'button');
    array('HtmlTag', array('tag' => 'dd')),
    array('Label', array('tag' => 'dt')),

A quick look at the image attributes shows the helper is defined as fromText var_dump($image->getAttribs());

Outputs: array(2) { ["helper"]=> string(8) "formText" ["class"]=> string(6) "button" }


Posted by Matthew Weier O'Phinney (matthew) on 2008-03-05T10:11:33.000+0000

Need to add a $helper property to Image element to correct the issue.

Posted by Matthew Weier O'Phinney (matthew) on 2008-03-06T14:32:58.000+0000

$helper property set to 'formImage' in trunk and release branch.

Have you found an issue?

See the Overview section for more details.


© 2006-2018 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.