diff options
author | mkanat%kerio.com <> | 2005-02-19 01:01:47 +0100 |
---|---|---|
committer | mkanat%kerio.com <> | 2005-02-19 01:01:47 +0100 |
commit | 62eecf24480520e204ab0057f8f7845c13f37c13 (patch) | |
tree | 99252665b81610168701173d4b5ce272c378fda6 /editusers.cgi | |
parent | c720bf60573fdb92874056ffd07c3d6055df22af (diff) | |
download | bugzilla-62eecf24480520e204ab0057f8f7845c13f37c13.tar.gz bugzilla-62eecf24480520e204ab0057f8f7845c13f37c13.tar.xz |
Bug 280494: Replace "SELECT LAST_INSERT_ID()" with Bugzilla::DB function call
Patch By Tomas Kopal <Tomas.Kopal@altap.cz> r=mkanat, a=justdave
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-x | editusers.cgi | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/editusers.cgi b/editusers.cgi index 9c8de6164..9a6de0d17 100755 --- a/editusers.cgi +++ b/editusers.cgi @@ -461,8 +461,7 @@ if ($action eq 'new') { #+++ send e-mail away print "OK, done.<br>\n"; - SendSQL("SELECT last_insert_id()"); - my ($newuserid) = FetchSQLData(); + my $newuserid = $dbh->bz_last_key('profiles', 'userid'); my $changeduser = new Bugzilla::User($newuserid); $changeduser->derive_groups(); |