Bypass default value in the Country form so that other values can be used if set. ITransace getCredentials.
This commit is contained in:
parent
a632380882
commit
5d17c43ff3
2 changed files with 4 additions and 1 deletions
|
|
@ -13,6 +13,7 @@
|
|||
- fixed #10676: Settings>Account Tab: typos
|
||||
- WebGUI::Shop::PayDriver::PayPal moved to WebGUI::Shop::PayDriver::PayPal::ExpressCheckout.
|
||||
- WebGUI::Shop::PayDriver::PayPal::PayPalStd is back, now functional.
|
||||
- fixed #10671: shop checkout address copy broken
|
||||
|
||||
7.7.15
|
||||
- fixed #10629: WebGUI::ProfileField create new field bug
|
||||
|
|
|
|||
|
|
@ -766,9 +766,11 @@ sub www_getCredentials {
|
|||
name => 'zipcode',
|
||||
value => $form->process("zipcode") || $addressData->{ code } || $u->profileField('homeZip'),
|
||||
});
|
||||
$session->log->warn("form: ". $form->process("country",'country'));
|
||||
$session->log->warn("addressData: ". $addressData->{country});
|
||||
$var->{countryField} = WebGUI::Form::country($session, {
|
||||
name => 'country',
|
||||
value => ($form->process("country",'country') || $addressData->{ country } || $u->profileField("homeCountry") || 'United States'),
|
||||
value => ($form->process("country",'country', '') || $addressData->{ country } || $u->profileField("homeCountry") || 'United States of A'),
|
||||
});
|
||||
$var->{phoneField} = WebGUI::Form::phone($session, {
|
||||
name => 'phone',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue