juks (juks) wrote in changelog,
juks
juks
changelog

[ljcom] r9736: LJSUP-7167: revoking payment does not re...

Committer: iaskarov
LJSUP-7167: revoking payment does not remove userhead

U   trunk/cgi-bin/LJ/Pay/Payment/PayItem/UserHead.pm
Modified: trunk/cgi-bin/LJ/Pay/Payment/PayItem/UserHead.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Payment/PayItem/UserHead.pm	2010-11-18 10:10:25 UTC (rev 9735)
+++ trunk/cgi-bin/LJ/Pay/Payment/PayItem/UserHead.pm	2010-11-19 04:46:11 UTC (rev 9736)
@@ -118,6 +118,10 @@
     return undef unless $u;
 
     $u->set_custom_usericon (undef);
+    
+    # Drop this item from the list
+    my $dbh = _get_dbh();
+    $dbh->do("DELETE FROM paidexp where userid=? AND item=?", undef, $u->userid, $self->{subitem});
 }
 
 sub _delivering_message {

Tags: juks, ljcom, pm
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