#297913 by catch: Use province names instead of codes for autocompletion.
authorBrandon Bergren
Thu, 21 Aug 2008 00:45:15 +0000 (00:45 +0000)
committerBrandon Bergren
Thu, 21 Aug 2008 00:45:15 +0000 (00:45 +0000)
location.module

index 9684bda..a70e2b4 100644 (file)
@@ -1282,7 +1282,7 @@ function _location_autocomplete($country, $string = '') {
     while (list($code, $name) = each($provinces)) {
       if ($counter < 5) {
         if (preg_match($string, strtolower($name))) {
-          $matches[$code] = $name;
+          $matches[$name] = $name;
           ++$counter;
         }
       }