журнал (shhh) wrote in changelog,
журнал
shhh
changelog

[ljcom] r12527: LJSUP-13392: Error when delete entry fro...

Committer: nnikulochkina
LJSUP-13392: Error when delete entry from community with Paid Repost
U   trunk/cgi-bin/LJ/Hooks/SUP.pm
Modified: trunk/cgi-bin/LJ/Hooks/SUP.pm
===================================================================
--- trunk/cgi-bin/LJ/Hooks/SUP.pm	2012-08-23 09:52:57 UTC (rev 12526)
+++ trunk/cgi-bin/LJ/Hooks/SUP.pm	2012-08-23 10:47:14 UTC (rev 12527)
@@ -1016,7 +1016,7 @@
 
     # If repost offer exists, delete it
     if($entry->repost_offer) {
-        my $repost_offer = LJ::Pay::Repost::Offer->load($jid, $entry->repost_offer);
+        my $repost_offer = LJ::Pay::Repost::Offer->load($entry->posterid, $entry->repost_offer);
         my $err;
         if ($repost_offer->inactive || $repost_offer->revoke(\$err,{pay_blockings => 1})) {
             $repost_offer->delete;

Tags: ljcom, nikulochkina, nnikulochkina, 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