[Koha-cvs] koha/members memberentry.pl [rel_3_0]

Bruno Toumi btoumi at ouestprovence.fr
Fri Dec 22 16:45:42 CET 2006


CVSROOT:	/sources/koha
Module name:	koha
Branch:		rel_3_0
Changes by:	Bruno Toumi <btoumi>	06/12/22 15:45:42

Modified files:
	members        : memberentry.pl 

Log message:
	bug fix : another condition for automatic insert in zip and city field in step 1
	( borrowers form )

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/koha/members/memberentry.pl?cvsroot=koha&only_with_tag=rel_3_0&r1=1.38.2.20&r2=1.38.2.21

Patches:
Index: memberentry.pl
===================================================================
RCS file: /sources/koha/koha/members/memberentry.pl,v
retrieving revision 1.38.2.20
retrieving revision 1.38.2.21
diff -u -b -r1.38.2.20 -r1.38.2.21
--- memberentry.pl	21 Dec 2006 16:43:06 -0000	1.38.2.20
+++ memberentry.pl	22 Dec 2006 15:45:42 -0000	1.38.2.21
@@ -1,5 +1,5 @@
 #!/usr/bin/perl
-# $Id: memberentry.pl,v 1.38.2.20 2006/12/21 16:43:06 btoumi Exp $
+# $Id: memberentry.pl,v 1.38.2.21 2006/12/22 15:45:42 btoumi Exp $
 
 # Copyright 2006 SAN OUEST PROVENCE et Paul POULAIN
 #
@@ -145,11 +145,15 @@
 # STEP 1
 	if ($step eq 1) {
 		###############test to take the right zipcode and city name ##############
-		if ( $guarantorid eq '0'){
+		if ( $guarantorid eq ''){
+		   if ($select_city){
 			my ($borrower_city,$borrower_zipcode)=&getzipnamecity($select_city);
 			$data{'city'}= $borrower_city;
 			$data{'zipcode'}=$borrower_zipcode;
 		}
+			
+			
+		}
                 if ($category_type ne 'I') {
                 my $age = get_age(format_date_in_iso($data{dateofbirth}));
                 my (undef,$agelimitmin,$agelimitmax,undef)=getborrowercategory($data{'categorycode'});   





More information about the Koha-cvs mailing list