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

Form.pm patch



Folks,

Just walking through the interface, had an error in a where clause in POS->Sale.

Please review patch, changing login to role.

Patch attached.

David A. Bandel
-- 
Focus on the dream, not the competition.
            - Nemesis Air Racing Team motto
--- Form.pm.orig	2009-06-21 23:26:38.000000000 -0500
+++ Form.pm	2009-06-21 23:27:01.000000000 -0500
@@ -896,7 +896,7 @@
     # we got a connection, check the version
     my $query = qq|
 		SELECT employeenumber FROM employee 
-		 WHERE login = ?|;
+		 WHERE role = ?|;
     my $sth = $dbh->prepare($query);
     $sth->execute( $self->{login} ) || $self->dberror($query);