ZF-4333: formSelect helper is rendering incorrect

Issue Type: Bug Created: 2008-09-19T11:30:33.000+0000 Last Updated: 2012-03-16T08:55:37.000+0000 Status: Resolved Fix version(s): - 1.7.0 (17/Nov/08)

Reporter: Chris Jensen (chrisj124) Assignee: Satoru Yoshida (satoruyoshida) Tags: - Zend_View

Related issues: - ZF-4313



Don't know if this still needs to be open It seems to be differences in PHP version? maybe?

Attributes: array('onChange' => 'alert("hello"); ') <--- Does not work in php 5.2.6

but array('onChange' => 'alert(\'zoo\'); ') <---- Does work

Using 1.6.0 or 1.6.1 on one server the formSelect helper is not rendering correctly. s?

Server details: Apache/2.2.9 (Unix) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8h PHP/5.2.6

Code: formSelect('frm\_campus\_id', null, array('onChange' => 'alert("hello"); '), $this->campusArray); ?>

Using Firebug - I can see that it is rendering like this: - Select -BBAC Campustest


Posted by Jon Whitcraft (sidhighwind) on 2008-10-22T15:27:21.000+0000

To me you should be assigning the onChange event with javascript in the view instead of trying to add it to the attribute to create proper html code.

Posted by old of Satoru Yoshida ( on 2008-11-08T17:57:13.000+0000

Solved in SVN r12477.

Posted by Wil Sinclair (wil) on 2008-11-13T14:10:01.000+0000

Changing issues in preparation for the 1.7.0 release.

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.