Bug 4248: Fixes zip code in cities town pull down list.
authorGarry Collum <gcollum@gmail.com>
Wed, 24 Feb 2010 01:17:31 +0000 (20:17 -0500)
committerGalen Charlton <gmcharlt@gmail.com>
Fri, 30 Apr 2010 02:19:16 +0000 (22:19 -0400)
Adds zip code to the GetCities function.  This function is only used in memberentry.pl.

Signed-off-by: Galen Charlton <gmcharlt@gmail.com>
C4/Members.pm

index 4f79e3e..836b58b 100644 (file)
@@ -1537,7 +1537,7 @@ sub GetCities {
     $city{""} = "";
     while ( my $data = $sth->fetchrow_hashref ) {
         push @id, $data->{'city_zipcode'}."|".$data->{'city_name'};
-        $city{ $data->{'city_zipcode'}."|".$data->{'city_name'} } = $data->{'city_name'};
+        $city{ $data->{'city_zipcode'}."|".$data->{'city_name'} } = $data->{'city_name'} . " " . $data->{'city_zipcode'};
     }
 
 #test to know if the table contain some records if no the function return nothing