kareila: (Default)
kareila ([personal profile] kareila) wrote in [site community profile] changelog2010-08-19 02:57 pm

[dw-free] Implement renames

[commit: http://hg.dwscoalition.org/dw-free/rev/53f8c9b8acd6]

http://bugs.dwscoalition.org/show_bug.cgi?id=216

Use correct field names for the renames table.

Patch by [personal profile] kareila.

Files modified:
  • bin/renameuser.pl
--------------------------------------------------------------------------------
diff -r f9c42f7e4fd4 -r 53f8c9b8acd6 bin/renameuser.pl
--- a/bin/renameuser.pl	Thu Aug 19 09:36:22 2010 -0500
+++ b/bin/renameuser.pl	Thu Aug 19 09:57:20 2010 -0500
@@ -154,7 +154,7 @@ sub rename_user
     LJ::procnotify_add("rename_user", { 'user' => $u->{'user'},
                                         'userid' => $u->{'userid'} });
 
-    $dbh->do( "INSERT INTO renames (renid, token, payid, userid, fromuser, touser, rendate) ".
+    $dbh->do( "INSERT INTO renames (renid, auth, cartid, renuserid, fromuser, touser, rendate) ".
               "VALUES ( NULL, '[manual]', 0, $u->{userid}, $qfrom, $qto, NOW() )" );
 
     return 1;
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org