summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-08-27 04:53:35 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2007-08-27 04:53:35 +0000
commit031e69854f83964266e5821d13cf49f438277cd1 (patch)
tree405127900f71bf0f6f5dc1082c5e52139e9505c6
parent1c46c3f03ea32f8888f4a41cbcc299a211b4b194 (diff)
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
-rw-r--r--LedgerSMB/User.pm4
1 files 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 );