[Koha-patches] [PATCH] Bug 4248: Fixes zip code in cities town pull down list.

Garry Collum gcollum at gmail.com
Wed Feb 24 02:17:31 CET 2010


Adds zip code to the GetCities function.  This function is only used in memberentry.pl.
---
 C4/Members.pm |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/C4/Members.pm b/C4/Members.pm
index 98adc27..10b365a 100644
--- a/C4/Members.pm
+++ b/C4/Members.pm
@@ -1570,7 +1570,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
-- 
1.5.6.5




More information about the Koha-patches mailing list