I have this code in a doctrine form $this->widgetSchema['priority'] = new sfWidgetFormChoice( array( 'choices' => $pri_choices )); var_dump($pri_choices); echo max(array_keys($pri_choices)); $this->widgetSchema['priority']- >setDefault( max(array_keys($pri_choices)) );
the output is array 100 => string 'Problematica' (length=12) 200 => string 'Informazione' (length=12) 200 I would expect to get the Informazione entry selected, while the HTML output is <select name="question[priority]" id="question_priority"> <option value="100" selected="selected">Problematica</option> <option value="200">Informazione</option> </select> It seems a bug, or am I missing something? Thanks Paolo -- 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 symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en