projects
/
project/location.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
c7aba3f
)
#297913 by catch: Use province names instead of codes for autocompletion.
author
Brandon Bergren
Thu, 21 Aug 2008 00:45:15 +0000 (
00:45
+0000)
committer
Brandon Bergren
Thu, 21 Aug 2008 00:45:15 +0000 (
00:45
+0000)
location.module
patch
|
blob
|
blame
|
history
diff --git
a/location.module
b/location.module
index
9684bda
..
a70e2b4
100644
(file)
--- a/
location.module
+++ b/
location.module
@@
-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;
}
}