Bypass default value in the Country form so that other values can be used if set. ITransace getCredentials.

This commit is contained in:
Colin Kuskie 2009-07-20 21:54:05 +00:00
parent a632380882
commit 5d17c43ff3
2 changed files with 4 additions and 1 deletions

View file

@ -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

View file

@ -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',