Fixed a bug which caused the phone field to display "-defaultValue". This is a still a bug in WebGUI core. The fix involved moving -defaultValue in front of -value in the phone form field of the checkoutForm method.

This commit is contained in:
Frank Dillon 2006-04-24 22:37:46 +00:00
parent e5a9041a5e
commit d234ce1858

View file

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