ZF-2698: setAttrib breaks setRequired's addion of a css class from being added

Issue Type: Bug Created: 2008-02-21T03:53:43.000+0000 Last Updated: 2008-03-21T16:25:32.000+0000 Status: Resolved Fix version(s): - 1.5.0 (17/Mar/08)

Reporter: James Dempster (letssurf) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_Form

Related issues: Attachments:


Adding a class attrib to a html form element using setAttrib stops setRequired from adding it's required css class.

I suggest we have an addClass or setClass method onto the form elements. This would keep a list of css classes being added to the html element, during the render it would explode this list with spaces and possibly use setAttrib with the new list of css classes.


Posted by Matthew Weier O'Phinney (matthew) on 2008-03-05T09:59:32.000+0000

This is actually simply broken logic in the decorator; will fix for GA release.

Posted by Matthew Weier O'Phinney (matthew) on 2008-03-07T13:19:28.000+0000

Fix committed to 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.