From d119fbd91ceec78eb3a9caad209986cb4deeb4c2 Mon Sep 17 00:00:00 2001 From: Ian Walls Date: Wed, 20 Jul 2011 13:11:12 -0400 Subject: [PATCH] Bug 6521 Follow up: previous patch breaks autoMemberNum functionality The previous patch broke the autoMemberNum feature by adding a line to fixup_cardnumber that returned 'undef' for cardnumber in all usages of the subroutine (limited to members/memberentry.pl and tools/import_borrowers.pl. This prevented the automatic number from being calculated in all cases. This patch removes the offending line. Signed-off-by: Ian Walls Signed-off-by: Nicole Engard Signed-off-by: Chris Cormack --- C4/Members.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/C4/Members.pm b/C4/Members.pm index c6c6985129..497073596e 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -900,7 +900,6 @@ sub fixup_cardnumber ($) { # if ($cardnumber !~ /\S/ && $autonumber_members) { ($autonumber_members) or return $cardnumber; - defined($cardnumber) or return $cardnumber; my $checkdigit = C4::Context->preference('checkdigit'); my $dbh = C4::Context->dbh; if ( $checkdigit and $checkdigit eq 'katipo' ) { -- 2.39.5