Country selection glitch

Events happening in the community are now at Drupal community events on www.drupal.org.
feliz's picture

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.

e-Commerce Module

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: