From 44c792801e96105857e7ece73e814932c2ecf225 Mon Sep 17 00:00:00 2001 From: Joe Atzberger Date: Wed, 12 Dec 2007 14:51:45 -0600 Subject: [PATCH] Members.pm - dbh->{'mysql_insertid'} still needed, despite shortcomings. Signed-off-by: Joshua Ferraro --- C4/Members.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/C4/Members.pm b/C4/Members.pm index 9651b2860b..2a075f41e8 100644 --- a/C4/Members.pm +++ b/C4/Members.pm @@ -705,7 +705,8 @@ sub AddMember { # print "Executing SQL: $query\n"; $sth->execute; $sth->finish; - # $data{'borrowernumber'} = $dbh->{'mysql_insertid'}; # unneeded w/ autoincrement ? + $data{'borrowernumber'} = $dbh->{'mysql_insertid'}; # unneeded w/ autoincrement ? + # mysql_insertid is probably bad. not necessarily accurate and mysql-specific at best. &logaction(C4::Context->userenv->{'number'},"MEMBERS","CREATE",$data{'borrowernumber'},"") if C4::Context->preference("BorrowersLog"); -- 2.39.5