vadvs (vadvs) wrote in changelog,
vadvs
vadvs
changelog

[livejournal] r17968: LJSUP-7651: Fix calling set_prop method ...

Committer: vsukhanov
LJSUP-7651: Fix calling set_prop method
U   trunk/cgi-bin/LJ/User/Rename.pm
Modified: trunk/cgi-bin/LJ/User/Rename.pm
===================================================================
--- trunk/cgi-bin/LJ/User/Rename.pm	2010-12-17 10:50:39 UTC (rev 17967)
+++ trunk/cgi-bin/LJ/User/Rename.pm	2010-12-17 11:53:48 UTC (rev 17968)
@@ -250,11 +250,13 @@
         # is complete, and 2) to allow the Billing team to fix it if the user
         # has made a mistake; the Billing team uses rename_redir console command,
         # see /admin/console and cgi-bin/LJ/Console/Command/RenameRedir.pm
-        $u_old_username = LJ::create_account({
+        my $u_old_userid = LJ::create_account({
             'user' => $from,
             'password' => '',
             'name' => '[renamed acct]',
         });
+        my $u_old_username = LJ::load_userid($u_old_userid);
+
         my $alias_changed = $dbh->do("UPDATE email_aliases SET alias=? WHERE alias=?",
                                      undef, "$to\@$LJ::USER_DOMAIN",
                                      "$from\@$LJ::USER_DOMAIN");

Tags: livejournal, pm, vadvs
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments