Issue

ZF-8587: Zend_View_Helper_FormRadio problem to value check

Issue Type: Bug Created: 2009-12-19T19:44:52.000+0000 Last Updated: 2012-01-09T17:05:19.000+0000 Status: Open Fix version(s): Reporter: Ramon Henrique Ornelas (ramon) Assignee: Matthew Weier O'Phinney (matthew) Tags: - Zend_View

Related issues: Attachments: - FormRadio.patch

Description

Problem Zend_View_Helper_FormRadio, line 152

<pre class="highlight">
in_array($opt_value, $value)

change for

<pre class="highlight">
in_array($opt_value, $value, true)

Comments

Posted by Ramon Henrique Ornelas (ramon) on 2009-12-19T19:48:54.000+0000

Patch of the test unit.

Posted by Sebastian Wilczy?ski (sebastianw) on 2010-02-09T07:53:52.000+0000

Before values get to this point they are all being converted to string so adding "true" wont help.

Here is what I think:

$v) { if(is\_numeric($v)) { $value[$k] = intval($v); } } if (in\_array($opt\_value, $value, true)) { $checked = ' checked="checked"'; } ?>

Posted by Sebastian Wilczynski (noisemc) on 2012-01-09T17:05:19.000+0000

Patch for FormRadio.php

Have you found an issue?

See the Overview section for more details.

Copyright

© 2006-2019 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