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:
parent
e5a9041a5e
commit
d234ce1858
1 changed files with 2 additions and 1 deletions
|
|
@ -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',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue