[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

SF.net SVN: ledger-smb: [1466] trunk/LedgerSMB/User.pm



Revision: 1466
          http://ledger-smb.svn.sourceforge.net/ledger-smb/?rev=1466&view=rev
Author:   einhverfr
Date:     2007-08-26 21:53:35 -0700 (Sun, 26 Aug 2007)

Log Message:
-----------
Fixing entity_id/id for employee in User.pm

Modified Paths:
--------------
    trunk/LedgerSMB/User.pm

Modified: trunk/LedgerSMB/User.pm
===================================================================
--- trunk/LedgerSMB/User.pm	2007-08-27 04:51:46 UTC (rev 1465)
+++ trunk/LedgerSMB/User.pm	2007-08-27 04:53:35 UTC (rev 1466)
@@ -264,7 +264,7 @@
         # 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 @@
 
     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 );


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.