Issues

ZF-1930: [patch] Zend_View_Helper_FormSelect mistakenly sets options with value of 0 to selected

Issue Type: Bug Created: 2007-09-10T14:50:54.000+0000 Last Updated: 2007-12-15T21:46:38.000+0000 Status: Resolved Fix version(s): - 1.0.3 (30/Nov/07)

Reporter: Aaron D. Campbell (aaroncampbell) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_View

Related issues: Attachments: - Zend_View_Helper_FormSelect.diff

Description

Zend_View_Helper_FormSelect uses in_array() to test if a value is supposed to be selected. Unfortunately, this causes a problem if one of the options has a value of 0. Any option with a value of 0 will be selected no matter what. I'm attaching a patch that fixes the problem.

Comments

Posted by Thomas Weidner (thomas) on 2007-09-11T12:59:55.000+0000

Assigned to Matthew

Posted by Matthew Weier O'Phinney (matthew) on 2007-11-16T12:16:05.000+0000

Scheduling for 1.0.3

Posted by Matthew Weier O'Phinney (matthew) on 2007-11-25T12:55:06.000+0000

Resolved in r6929; will be released with 1.0.3.

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts