sunnyman's (sunnyman) wrote in changelog,
sunnyman's
sunnyman
changelog

[ljcom] r12807: LJSUP-13935: Show correct Journal Promo ...

Committer: vtroitsky
LJSUP-13935: Show correct Journal Promo transactions in the user's wallet history
U   trunk/cgi-bin/LJ/Pay/Payment/PayItem/SelfPromo.pm
Modified: trunk/cgi-bin/LJ/Pay/Payment/PayItem/SelfPromo.pm
===================================================================
--- trunk/cgi-bin/LJ/Pay/Payment/PayItem/SelfPromo.pm	2012-10-22 15:02:35 UTC (rev 12806)
+++ trunk/cgi-bin/LJ/Pay/Payment/PayItem/SelfPromo.pm	2012-10-23 06:38:15 UTC (rev 12807)
@@ -156,11 +156,13 @@
     my $prefix = $self->get_promo_class();
     if ($prefix eq PROMO_JOURNAL()) {
         my $promo = $self->get_promotion();
-        return LJ::Lang::ml('wallet.widget.history.des.order.journal', {
-            object_url  => $promo->object_url(),
-            journal     => $promo->slot->owner()->ljuser_display(),
-            'cart_link' => $cart_link,
-        });
+        if ($promo) {
+            return LJ::Lang::ml('wallet.widget.history.des.order.journal', {
+                object_url  => $promo->object_url(),
+                journal     => $promo->slot->owner()->ljuser_display(),
+                'cart_link' => $cart_link,
+            });
+        }
     }
     return LJ::Lang::ml('wallet.widget.history.des.order', {
             'cart_link' => $cart_link,

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