From 139ba12db3b1943a4524a18f026d7e2084479698 Mon Sep 17 00:00:00 2001 From: btoumi Date: Tue, 13 Jun 2006 15:25:17 +0000 Subject: [PATCH] memberentryC.tmpl: modify and add conditions moremember.tmpl:add op value in url (modify) memberentry.pl:modify condition --- .../intranet-tmpl/prog/en/members/memberentryC.tmpl | 9 ++++++--- .../intranet-tmpl/prog/en/members/moremember.tmpl | 2 +- members/memberentry.pl | 10 +++++----- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/members/memberentryC.tmpl b/koha-tmpl/intranet-tmpl/prog/en/members/memberentryC.tmpl index d59e3e8061..4db42b10eb 100755 --- a/koha-tmpl/intranet-tmpl/prog/en/members/memberentryC.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/members/memberentryC.tmpl @@ -5,7 +5,7 @@ - +

Add children member (step )

@@ -179,8 +179,11 @@ Other name " >

-

Find guarantor -

+ + +

Find guarantor

+ +
Borrower type diff --git a/koha-tmpl/intranet-tmpl/prog/en/members/moremember.tmpl b/koha-tmpl/intranet-tmpl/prog/en/members/moremember.tmpl index 06f3983be6..6de18c2884 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/members/moremember.tmpl +++ b/koha-tmpl/intranet-tmpl/prog/en/members/moremember.tmpl @@ -9,7 +9,7 @@ &category_type=C">Add child - &category_type="> + &category_type="> Edit this Record diff --git a/members/memberentry.pl b/members/memberentry.pl index 6bfa455036..d083349eb6 100755 --- a/members/memberentry.pl +++ b/members/memberentry.pl @@ -116,7 +116,7 @@ if ($op eq 'add' or $op eq 'modify') { #recover all data from guarantor address phone ,fax... -if ($category_type eq 'C' and $guarantorid ne '' and $data{'contactname'} eq ''){ +if ($category_type eq 'C' and $guarantorid ne '' ){ my $guarantordata=getguarantordata($guarantorid); if (($data{'contactname'} eq '' or $data{'contactname'} ne $guarantordata->{'surname'})) { $data{'contactfirstname'}=$guarantordata->{'firstname'}; @@ -134,7 +134,8 @@ if ($category_type eq 'C' and $guarantorid ne '' and $data{'contactname'} eq '') $data{'fax'}=$guarantordata->{'fax'}; $data{'email'}=$guarantordata->{'email'}; $data{'emailpro'}=$guarantordata->{'emailpro'}; - $default_city=getidcity($data{'city'}); + + $default_city=getidcity($data{'city'}); } } @@ -284,9 +285,8 @@ if ($delete){ -default=>$default_category, -labels=>$labels); #test in city - - if ($op eq ''){ - (my $selectcity=&getidcity($data{'city'})) if ($select_city eq ''); + if ($op eq 'modify' and $select_city eq '' ){ + my $selectcity=&getidcity($data{'city'}); $default_city=$selectcity; } my($cityid,$name_city)=getcities(); -- 2.39.5