Permalink
Browse files

yesno widget saves bit instead of string

  • Loading branch information...
1 parent 690aa8f commit 46d94fb61f4e0a9ed35a45cae92669bf3add866d @bshaffer committed Nov 19, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/form/doctrine/PlugincsSettingForm.class.php
@@ -83,11 +83,11 @@ public function getDateTimeSettingValidator()
// Type Yesno
public function getYesnoSettingWidget()
{
- return new sfWidgetFormSelectRadio(array('choices' => array('yes' => 'Yes', 'no' => 'No')), $this->getObject()->getOptionsArray());
+ return new sfWidgetFormSelectRadio(array('choices' => array('1' => 'Yes', '0' => 'No')), $this->getObject()->getOptionsArray());
}
public function getYesnoSettingValidator()
{
- return new sfValidatorChoice(array('choices' => array('yes', 'no'), 'required' => false));
+ return new sfValidatorChoice(array('choices' => array('1', '0'), 'required' => false));
}
//Type Select List

0 comments on commit 46d94fb

Please sign in to comment.