From 082d715cd9f6ff36c7c6af5c649fb5b094cba82d Mon Sep 17 00:00:00 2001 From: einhverfr Date: Mon, 30 Oct 2006 05:20:17 +0000 Subject: Fixing scoping issue with employeenumber git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@383 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/User.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/LedgerSMB/User.pm b/LedgerSMB/User.pm index fabcde51..f8d8d92e 100755 --- a/LedgerSMB/User.pm +++ b/LedgerSMB/User.pm @@ -782,6 +782,7 @@ sub save_member { my ($id) = $sth->fetchrow_array; $sth->finish; + my $employeenumber; if ($id) { $query = qq|UPDATE employee SET @@ -792,7 +793,7 @@ sub save_member { } else { - my ($employeenumber) = Form::update_defaults( + ($employeenumber) = Form::update_defaults( "", \%$self, "employeenumber", $dbh); $query = qq| INSERT INTO employee -- cgit v1.2.3