Posted by feliz on May 8, 2007 at 2:02am
The country selection dropdown of the address book form (address module, Ecommerce 4.7/3.0) always keeps selecting the last country when the empty address form appears in FireFox. The problem is on line 343 of address.module, inside address_form_fields(),
<?php
$country = ($edit['country'] ? $edit['country'] : variable_get('ec_country', 0));
?>where numeric 0 is used as a default value, whereas '0' (string) should be used.
Also, there is an inconsistency between the maximum lengths of some form fields with the maximum lengths of the respective fields in the ec_address database table. This leads to dropped queries without the user knowing what happened.