Hi, 2011/1/2 Scott O'Brien <[email protected]>: > Howdy, I'm having trouble with one of my fields in a form. I've got a > section of code in my form php > > $isCitizen = array( > > True => 'Yes', > > False => 'No', > > ); > > $this->widgetSchema['citizenship'] = new sfWidgetFormChoice(array( > > 'choices' => $isCitizen, > > 'multiple' => false, > > 'expanded' => false, > > )); > > which turns a checkbox into a drop down for Yes and No, but it always shows > up as being Yes when the page loads by default regardless what it is in the > database (even though it updates in the DB when saved)
I have the same problem in backend. AFAIR this worked fine in frontend, so this may be a regression. Later I'll take a look at my other project and check if frontend works as expected. > Any idea how to fix > this to populate from the database? Not currently, but I'll have to work out this problem > > -- > If you want to report a vulnerability issue on symfony, please send it to > security at symfony-project.com > > You received this message because you are subscribed to the Google > Groups "symfony users" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en > -- Best regards, Michal Sent from my fscking awesome Black Hole Generator -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
