From 0244cec043543b6e61e81c8ceccd0a634e6f70ae Mon Sep 17 00:00:00 2001 From: wolfpac444 Date: Thu, 8 May 2003 13:36:14 +0000 Subject: [PATCH] Fixed barcode / cardnumber error --- imemberentry.pl | 6 +++++- .../intranet-tmpl/default/en/members/imemberentry.tmpl | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/imemberentry.pl b/imemberentry.pl index 2d6a93a418..1a43ac36c3 100755 --- a/imemberentry.pl +++ b/imemberentry.pl @@ -30,6 +30,7 @@ use C4::Search; use C4::Interface::CGI::Output; use C4::Koha; use HTML::Template; +use C4::Members; my $input = new CGI; @@ -51,6 +52,8 @@ my $type=$input->param('type'); my $data=borrdata('',$member); +my $cardnumber=C4::Members::fixup_cardnumber($data->{'cardnumber'}); + my @branches; my @select_branch; my %select_branches; @@ -67,7 +70,8 @@ my $CGIbranch=CGI::scrolling_list( -name => 'branch', -multiple => 0 ); $template->param(member => $member, - CGIbranch => $CGIbranch); + cardnumber_institution => $cardnumber, + CGIbranch => $CGIbranch); output_html_with_http_headers $input, $cookie, $template->output; diff --git a/koha-tmpl/intranet-tmpl/default/en/members/imemberentry.tmpl b/koha-tmpl/intranet-tmpl/default/en/members/imemberentry.tmpl index bf2c034b06..531c910e0d 100644 --- a/koha-tmpl/intranet-tmpl/default/en/members/imemberentry.tmpl +++ b/koha-tmpl/intranet-tmpl/default/en/members/imemberentry.tmpl @@ -19,7 +19,7 @@ Member# , Card Number* -
+ >
  @@ -111,7 +111,7 @@ - /images/save-changes.gif" WIDTH=188 HEIGHT=44 ALT="Add New Member" border=0 > + -- 2.39.5