selectBox fixes

This commit is contained in:
Matthew Wilson 2006-05-07 03:56:30 +00:00
parent 390fdcd8d9
commit ee0bf0f5db
2 changed files with 4 additions and 4 deletions

View file

@ -339,8 +339,8 @@ sub checkoutForm {
$f->selectBox( $f->selectBox(
-name=>"country", -name=>"country",
-label=>$i18n->get("country"), -label=>$i18n->get("country"),
-value=>[$self->session->form->process("country")], -value=>$self->session->form->process("country"),
-defaultValue=>[$u->profileField("homeCountry")], -defaultValue=>$u->profileField("homeCountry"),
-options=>\%countries -options=>\%countries
); );
$f->phone( $f->phone(

View file

@ -409,8 +409,8 @@ sub checkoutForm {
$f->selectBox( $f->selectBox(
-name=>"country", -name=>"country",
-label=>$i18n->get("country"), -label=>$i18n->get("country"),
-value=>[$self->session->form->process("country")], -value=>$self->session->form->process("country"),
-defaultValue=>[$u->profileField("homeCountry")], -defaultValue=>$u->profileField("homeCountry"),
-options=>\%countries -options=>\%countries
); );
#For some odd reason, defaultValue needs to come before value here or value displays the text "-defaultValue". Bug is reported. #For some odd reason, defaultValue needs to come before value here or value displays the text "-defaultValue". Bug is reported.