From 57ebea8aaa95acc1fd17cf3017e3b01cdadd9980 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 (cherry picked from commit d119fbd91ceec78eb3a9caad209986cb4deeb4c2) Signed-off-by: Chris Nighswonger --- C4/Members.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/C4/Members.pm b/C4/Members.pm index 9049534fb3..871b555178 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -909,7 +909,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