From 031e69854f83964266e5821d13cf49f438277cd1 Mon Sep 17 00:00:00 2001 From: einhverfr Date: Mon, 27 Aug 2007 04:53:35 +0000 Subject: Fixing entity_id/id for employee in User.pm git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@1466 4979c152-3d1c-0410-bac9-87ea11338e46 --- LedgerSMB/User.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LedgerSMB/User.pm b/LedgerSMB/User.pm index 5ef96a6a..b5b043d6 100644 --- a/LedgerSMB/User.pm +++ b/LedgerSMB/User.pm @@ -264,7 +264,7 @@ sub login { # no error check for employee table, ignore if it does not exist my $login = $self->{login}; $login =~ s/@.*//; - $query = qq|SELECT id FROM employee WHERE login = ?|; + $query = qq|SELECT entity_id FROM employee WHERE login = ?|; $sth = $dbh->prepare($query); $sth->execute($login); @@ -1066,7 +1066,7 @@ sub delete_login { my $login = $form->{login}; $login =~ s/@.*//; - my $query = qq|SELECT id FROM employee WHERE login = ?|; + my $query = qq|SELECT entity_id FROM employee WHERE login = ?|; my $sth = $dbh->prepare($query); $sth->execute($login) || $form->dberror( __FILE__ . ':' . __LINE__ . ': ' . $query ); -- cgit v1.2.3