Zend Framework

Zend_Dojo_Form_Element_CheckBox renders an options attribute with value "0 1"

Details

  • Type: Bug Bug
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: None
  • Fix Version/s: 1.6.1
  • Component/s: Zend_Dojo
  • Labels:
    None

Description

Zend_Dojo_Form_Element_CheckBox renders an options attribute with value "0 1" in the input tag. This is not XHTML compliant.

Activity

Hide
Matthew Weier O'Phinney added a comment -

Patches applied to trunk and 1.6 release branch.

Show
Matthew Weier O'Phinney added a comment - Patches applied to trunk and 1.6 release branch.
Hide
Dieter Devlieghere added a comment -

I'm working with Zend Framework 1.7.4 here and I have this issue as well:

$gsPr1 = new Zend_Dojo_Form_Element_CheckBox('cbxGreenSeatPrice1');
$gsPr1->setLabel('Greenseat 1');
$gsPr1->setValue('greenseat1');
$gsPr1->setChecked(false);

Renders to:

<input name="cbxGreenSeatPrice1" value="0" type="hidden" /><input unChecked="0" id="cbxGreenSeatPrice1" dijitParams="" dojoType="dijit.form.CheckBox" name="cbxGreenSeatPrice1" value="0" type="checkbox" checked="" options="1 0" />

Another issue: setChecked(false) doesn't seem to work.

Show
Dieter Devlieghere added a comment - I'm working with Zend Framework 1.7.4 here and I have this issue as well: $gsPr1 = new Zend_Dojo_Form_Element_CheckBox('cbxGreenSeatPrice1'); $gsPr1->setLabel('Greenseat 1'); $gsPr1->setValue('greenseat1'); $gsPr1->setChecked(false); Renders to: <input name="cbxGreenSeatPrice1" value="0" type="hidden" /><input unChecked="0" id="cbxGreenSeatPrice1" dijitParams="" dojoType="dijit.form.CheckBox" name="cbxGreenSeatPrice1" value="0" type="checkbox" checked="" options="1 0" /> Another issue: setChecked(false) doesn't seem to work.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: